Write log messages into a log file.
More...
#include <logger.h>
|
void | log (const std::string &source, const std::string &msg) |
| Log message. More...
|
|
| Logger (const std::string &path, bool flush=false) |
| Constructor. More...
|
|
| ~Logger () |
|
Write log messages into a log file.
Definition at line 15 of file logger.h.
rosmon::Logger::Logger |
( |
const std::string & |
path, |
|
|
bool |
flush = false |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
path | Path to the output file |
Definition at line 19 of file logger.cpp.
rosmon::Logger::~Logger |
( |
| ) |
|
void rosmon::Logger::log |
( |
const std::string & |
source, |
|
|
const std::string & |
msg |
|
) |
| |
FILE* rosmon::Logger::m_file = nullptr |
|
private |
bool rosmon::Logger::m_flush = false |
|
private |
The documentation for this class was generated from the following files: