#include <OnixS/CME/Streamlined/FileLogger.h>
Public Member Functions | |
FileLogger (const FileLoggerSettings &, FileLoggerListener *=nullptr) | |
~FileLogger () | |
const FileLoggerSettings & | settings () const |
LogEntry * | addEntry (LogSeverity::Enum) |
std::string | rollover () |
Additional Inherited Members | |
Protected Member Functions inherited from Logger | |
Logger () | |
virtual | ~Logger () |
Provides additional facilities like splitting logged data into chunks not exceeding specified size limit.
Definition at line 146 of file FileLogger.h.
FileLogger | ( | const FileLoggerSettings & | , |
FileLoggerListener * | = nullptr |
||
) |
Initializes logger according to given settings.
~FileLogger | ( | ) |
Disposes logging machinery.
|
virtual |
Adds a new entry into the log.
Returns instance for further fulfill or NULL if given severity is lower than defined by settings at the moment of instance construction.
Implements Logger.
std::string rollover | ( | ) |
Rolls over current log and starts recording a new chunk.
Detached data is stored into a file whose name is suffixed with a timestamp taken at the moment of detach. Timestamp is taken using watch service associated with the logger using its settings.
const FileLoggerSettings& settings | ( | ) | const |
Configuration of given logger instance.