OnixS C++ CME MDP Conflated UDP Handler 1.1.2
API documentation
Loading...
Searching...
No Matches
FileLogger Class Reference

Public Member Functions

 FileLogger (const FileLoggerSettings &, FileLoggerListener *=NULL)
 ~FileLogger ()
const FileLoggerSettingssettings () const
void info (std::string &)
LogEntryaddEntry (LogSeverity::Enum)
std::string rollover ()
Public Member Functions inherited from Logger
virtual ~Logger ()

Additional Inherited Members

Protected Member Functions inherited from Logger
 Logger ()

Detailed Description

Implements logging services to put logged data into a regular file. Provides additional facilities like splitting logged data into chunks not exceeding specified size limit.

Definition at line 147 of file FileLogger.h.

Constructor & Destructor Documentation

◆ FileLogger()

Initializes logger according to given settings.

◆ ~FileLogger()

~FileLogger ( )

Disposes logging machinery.

Member Function Documentation

◆ addEntry()

LogEntry * addEntry ( LogSeverity::Enum )
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.

◆ info()

void info ( std::string & )
virtual

Basic information on the implementation of the logging services.

Implements Logger.

◆ rollover()

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.

Returns
Name of file containing detached data.

◆ settings()

const FileLoggerSettings & settings ( ) const

Configuration of given logger instance.