#include <RmpLogger.h>
Classes | |
| struct | Impl |
Static Public Member Functions | |
| static void | AddLogFile (const std::string &rFileName) |
| static void | AddOutputStream (std::ostream &rOutputStream) |
| static void | Log (LogLevel level, const std::string &rMessage) |
| static void | SetMinLogLevel (LogLevel level) |
Private Member Functions | |
| Logger () | |
| Logger (const Logger &) | |
| Logger & | operator= (const Logger &) |
| ~Logger () | |
Private Attributes | |
| std::unique_ptr< Impl > | m_pImpl |
This class is used for logging.
Definition at line 64 of file RmpLogger.h.
| segway::Logger::Logger | ( | ) | [private] |
All constructors should be private. The user should not be able to create/modify any objects of this class. Default constructor
| segway::Logger::Logger | ( | const Logger & | ) | [private] |
Copy constructor
| segway::Logger::~Logger | ( | ) | [private] |
Destructor
| void segway::Logger::AddLogFile | ( | const std::string & | rFileName | ) | [static] |
Create a file for logging.
| rFileName | file name |
Definition at line 87 of file RmpLogger.cpp.
| void segway::Logger::AddOutputStream | ( | std::ostream & | rOutputStream | ) | [static] |
Add an output stream to log to, such as std::cout, std::cerr...
| rOutputStream | output stream |
Definition at line 80 of file RmpLogger.cpp.
| void segway::Logger::Log | ( | LogLevel | level, |
| const std::string & | rMessage | ||
| ) | [static] |
Log a message
| level | log level |
| rMessage | log message |
Definition at line 97 of file RmpLogger.cpp.
| void segway::Logger::SetMinLogLevel | ( | LogLevel | level | ) | [static] |
Set the minimum severity of the message to be logged.
| level | minimum severity level |
Definition at line 73 of file RmpLogger.cpp.
std::unique_ptr<Impl> segway::Logger::m_pImpl [private] |
Definition at line 122 of file RmpLogger.h.