TrueReality  v0.1.1912
trUtil::Logging::LogWriter Class Referenceabstract

Interface class to receive messages from the Log. More...

#include <LogWriter.h>

Inheritance diagram for trUtil::Logging::LogWriter:
Collaboration diagram for trUtil::Logging::LogWriter:

Classes

struct  LogData
 A log data. More...
 

Public Member Functions

virtual void LogMessage (const LogData &logData)=0
 Logs a message. More...
 

Protected Member Functions

virtual ~LogWriter ()
 Destructor. More...
 

Detailed Description

Interface class to receive messages from the Log.

Derive and implement the LogMessage() method to support custom handling of Log messages.

See also
trUtil::Logging::Log::AddWriter()

Definition at line 51 of file LogWriter.h.

Constructor & Destructor Documentation

◆ ~LogWriter()

trUtil::Logging::LogWriter::~LogWriter ( )
inlineprotectedvirtual

Destructor.

Definition at line 98 of file LogWriter.h.

Member Function Documentation

◆ LogMessage()

void trUtil::Logging::LogWriter::LogMessage ( const LogData logData)
pure virtual

Logs a message.

Parameters
logDataInformation describing the log.

Implemented in trUtil::Logging::LogWriterFile, and trUtil::Logging::LogWriterConsole.


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