#include <nap/logger.h>
Public Member Functions | |
FileLogHandler (const std::string &mFilename) | |
~FileLogHandler () | |
void | commit (LogMessage message) override |
![]() | |
LogHandler () | |
virtual | ~LogHandler ()=default |
void | setLogLevel (const LogLevel &level) |
const LogLevel & | getLogLevel () const |
void | setFormatter (LogMessageFormatter formatter) |
std::string | formatMessage (LogMessage &msg) |
Log handler that will write log messages to a file. Upon construction, it will open a file stream to write to and will remain open for the lifetime of the handler. The file writer runs another thread to keep the call site unburdened
FileLogHandler | ( | const std::string & | mFilename | ) |
~FileLogHandler | ( | ) |
|
overridevirtual |