OnixS C++ CME MDP Premium Market Data Handler 5.11.1
Users' manual and API documentation
Loading...
Searching...
No Matches
Logger Class Referenceabstract

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

Public Member Functions

virtual ~Logger () noexcept=default
virtual void info (std::string &str)=0
virtual LogEntry * addEntry (LogSeverity::Enum severity)=0

Protected Member Functions

 Logger ()=default

Detailed Description

Definition at line 197 of file Logger.h.

Constructor & Destructor Documentation

◆ ~Logger()

virtual ~Logger ( )
virtualdefaultnoexcept

Finalizes the logger.

◆ Logger()

Logger ( )
protecteddefault

Initializes the base of a concrete logger implementation.

Member Function Documentation

◆ addEntry()

virtual LogEntry * addEntry ( LogSeverity::Enum severity)
pure virtual

Acquires a mutable entry for submission to the log.

If an entry is returned, populate it through LogEntry and finish by calling LogEntry::commit(). The caller must not delete the entry.

Parameters
severitySeverity of the proposed entry.
Returns
Entry to populate, or nullptr when severity is disabled by the logger configuration or the entry cannot be created.
Exceptions
Anyexception propagated by the concrete logger implementation.

Implemented in FileLogger, and NullLogger.

◆ info()

virtual void info ( std::string & str)
pure virtual

Appends a description of the logger implementation to a string.

Parameters
strDestination string to append to.
Exceptions
Anyexception propagated by the concrete logger implementation, including string allocation and length errors.

Implemented in FileLogger, and NullLogger.