OnixS C++ CME MDP Premium Market Data Handler  5.8.9
API Documentation
FileLogger Class Reference

#include <OnixS/CME/MDH/FileLogger.h>

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from Logger
 Logger ()
 

Detailed Description

Provides additional facilities like splitting logged data into chunks not exceeding specified size limit.

Definition at line 139 of file FileLogger.h.

Constructor & Destructor Documentation

FileLogger ( const FileLoggerSettings ,
FileLoggerListener = nullptr 
)

Initializes logger according to given settings.

~FileLogger ( )
override

Disposes logging machinery.

Member Function Documentation

LogEntry* addEntry ( LogSeverity::Enum  )
overridevirtual

Adds a new entry into the log.

Returns instance for further fulfill or ONIXS_CMEMDH_NULLPTR if given severity is lower than defined by settings at the moment of instance construction.

Implements Logger.

void info ( std::string &  )
overridevirtual

Basic information on the implementation of the logging services.

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.

Returns
Name of file containing detached data.
const FileLoggerSettings& settings ( ) const

Configuration of given logger instance.


The documentation for this class was generated from the following file: