Lugdunum
0.1.0
|
#include <FileHandler.hpp>
Public Member Functions | |
FileHandler (const std::string &name, const std::string &filename, bool truncate) | |
FileHandler (const FileHandler &)=delete | |
FileHandler (FileHandler &&)=delete | |
FileHandler & | operator= (const FileHandler &)=delete |
FileHandler & | operator= (FileHandler &&)=delete |
~FileHandler () | |
void | handle (const priv::Message &msg) |
void | flush () |
Public Member Functions inherited from lug::System::Logger::Handler | |
Handler (const std::string &name) | |
Handler (const Handler &)=delete | |
Handler (Handler &&)=delete | |
Handler & | operator= (const Handler &)=delete |
Handler & | operator= (Handler &&)=delete |
virtual | ~Handler ()=default |
void | setFormatter (std::unique_ptr< Formatter > formatter) |
void | setPattern (const std::string &pattern) |
void | format (priv::Message &msg) |
bool | shouldLog (Level level) const |
void | setLevel (Level level) |
Level | getLevel () const |
Private Attributes | |
std::ofstream | _ofs |
Additional Inherited Members | |
Protected Attributes inherited from lug::System::Logger::Handler | |
std::string | _name |
std::unique_ptr< Formatter > | _formatter |
Level | _level |
Definition at line 12 of file FileHandler.hpp.
lug::System::Logger::FileHandler::FileHandler | ( | const std::string & | name, |
const std::string & | filename, | ||
bool | truncate | ||
) |
Definition at line 8 of file FileHandler.cpp.
|
delete |
|
delete |
lug::System::Logger::FileHandler::~FileHandler | ( | ) |
Definition at line 23 of file FileHandler.cpp.
|
delete |
|
delete |
|
virtual |
Implements lug::System::Logger::Handler.
Definition at line 27 of file FileHandler.cpp.
|
virtual |
Implements lug::System::Logger::Handler.
Definition at line 31 of file FileHandler.cpp.
|
private |
Definition at line 30 of file FileHandler.hpp.