OnixS C++ CME MDP Premium Market Data Handler 5.9.0
API Documentation
Loading...
Searching...
No Matches
LogEvent Class Reference

Public Member Functions

 LogEvent (LogEntry &entry, LogCategory::Enum category, const StrRef &source)
 ~LogEvent ()
std::string & message ()
const std::string & message () const

Detailed Description

Given class adds basic information about time of entry record, category and source of log entry. It also enhances API with ability to put data into log entries in simple and elegant way by using streaming operators.

Definition at line 39 of file LogEvents.h.

Constructor & Destructor Documentation

◆ LogEvent()

LogEvent ( LogEntry & entry,
LogCategory::Enum category,
const StrRef & source )
inline

Initializes event with LogEntry instance.

Definition at line 43 of file LogEvents.h.

◆ ~LogEvent()

~LogEvent ( )
inline

Commits entry to the log.

Definition at line 52 of file LogEvents.h.

Member Function Documentation

◆ message() [1/2]

std::string & message ( )
inline

Informational message to be added to a log.

Definition at line 58 of file LogEvents.h.

◆ message() [2/2]

const std::string & message ( ) const
inline

Informational message to be added to a log.

Definition at line 64 of file LogEvents.h.