OnixS C++ CME MDP Conflated UDP Handler 1.1.2
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

By default, logging machinery provides access to the entry with ability to store arbitrary text. 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 51 of file LogEvents.h.

◆ ~LogEvent()

~LogEvent ( )
inline

Commits entry to the log.

Definition at line 63 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 69 of file LogEvents.h.

◆ message() [2/2]

const std::string & message ( ) const
inline

Informational message to be added to a log.

Definition at line 75 of file LogEvents.h.