DDraceNetwork Docs
CServerLogger Class Reference

#include <server_logger.h>

Inheritance diagram for CServerLogger:
[legend]
Collaboration diagram for CServerLogger:
[legend]

Public Member Functions

 CServerLogger (CServer *pServer)
 
void Log (const CLogMessage *pMessage) override REQUIRES(!m_PendingLock)
 
void OnServerDeletion ()
 
- 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

CServerm_pServer = nullptr
 
CLock m_PendingLock
 
std::vector< CLogMessagem_vPending
 
std::thread::id m_MainThread
 

Additional Inherited Members

- Protected Attributes inherited from ILogger
CLogFilter m_Filter
 

Constructor & Destructor Documentation

◆ CServerLogger()

CServerLogger::CServerLogger ( CServer pServer)

Member Function Documentation

◆ Log()

void CServerLogger::Log ( const CLogMessage pMessage)
overridevirtual

Send the specified message to the logging backend.

Parameters
pMessageStruct describing the log message.

Implements ILogger.

◆ OnServerDeletion()

void CServerLogger::OnServerDeletion ( )

Member Data Documentation

◆ m_MainThread

std::thread::id CServerLogger::m_MainThread
private

◆ m_PendingLock

CLock CServerLogger::m_PendingLock
private

◆ m_pServer

CServer* CServerLogger::m_pServer = nullptr
private

◆ m_vPending

std::vector<CLogMessage> CServerLogger::m_vPending
private

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