DDraceNetwork Docs
|
#include <logger.h>
Public Member Functions | |
void | SetParent (ILogger *pParentLogger) |
void | Log (const CLogMessage *pMessage) override |
std::vector< CLogMessage > | Lines () |
std::string | ConcatenatedLines () |
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 | |
ILogger * | m_pParentLogger = nullptr |
std::vector< CLogMessage > | m_vMessages |
CLock | m_MessagesMutex |
Additional Inherited Members | |
Protected Attributes inherited from ILogger | |
CLogFilter | m_Filter |
Logger that collects messages in memory. This is useful to collect the log messages for a particular operation and show them in a user interface when the operation failed. Use only temporarily with CLogScope or it will result in excessive memory usage.
Messages are also forwarded to the parent logger if it's set, regardless of this logger's filter.
std::string CMemoryLogger::ConcatenatedLines | ( | ) |
std::vector< CLogMessage > CMemoryLogger::Lines | ( | ) |
|
overridevirtual |
Send the specified message to the logging backend.
pMessage | Struct describing the log message. |
Implements ILogger.
|
inline |
|
private |
|
private |
|
private |