DDraceNetwork Docs
CLoggerAsync Class Reference
Inheritance diagram for CLoggerAsync:
[legend]
Collaboration diagram for CLoggerAsync:
[legend]

Public Member Functions

 CLoggerAsync (IOHANDLE File, bool AnsiTruecolor, bool Close)
 
void Log (const CLogMessage *pMessage) override
 
 ~CLoggerAsync () override
 
void GlobalFinish () override
 
- Public Member Functions inherited from ILogger
virtual ~ILogger ()
 
void SetFilter (const CLogFilter &Filter)
 
virtual void Log (const CLogMessage *pMessage)=0
 
virtual void GlobalFinish ()
 
virtual void OnFilterChange ()
 

Private Attributes

ASYNCIOm_pAio
 
bool m_AnsiTruecolor
 
bool m_Close
 

Additional Inherited Members

- Protected Attributes inherited from ILogger
CLogFilter m_Filter
 

Constructor & Destructor Documentation

◆ CLoggerAsync()

CLoggerAsync::CLoggerAsync ( IOHANDLE  File,
bool  AnsiTruecolor,
bool  Close 
)
inline

◆ ~CLoggerAsync()

CLoggerAsync::~CLoggerAsync ( )
inlineoverride

Member Function Documentation

◆ GlobalFinish()

void CLoggerAsync::GlobalFinish ( )
inlineoverridevirtual

Flushes output buffers and shuts down. Global loggers cannot be destroyed because they might be accessed from multiple threads concurrently.

This function is called on the global logger by log_global_logger_finish when the program is about to shut down and loggers are supposed to finish writing the log messages they have received so far.

The destructor of this ILogger instance will not be called if this function is called.

See also
log_global_logger_finish

Reimplemented from ILogger.

◆ Log()

void CLoggerAsync::Log ( const CLogMessage pMessage)
inlineoverridevirtual

Send the specified message to the logging backend.

Parameters
pMessageStruct describing the log message.

Implements ILogger.

Member Data Documentation

◆ m_AnsiTruecolor

bool CLoggerAsync::m_AnsiTruecolor
private

◆ m_Close

bool CLoggerAsync::m_Close
private

◆ m_pAio

ASYNCIO* CLoggerAsync::m_pAio
private

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