![]() |
DDNet documentation
|
Public Member Functions | |
| CTestLogger (std::unique_ptr< ILogger > &&pGlobalLogger) | |
| void | Log (const CLogMessage *pMessage) override |
| void | GlobalFinish () override |
| Public Member Functions inherited from ILogger | |
| virtual | ~ILogger ()=default |
| void | SetFilter (const CLogFilter &Filter) |
| virtual void | OnFilterChange () |
Private Attributes | |
| std::unique_ptr< ILogger > | m_pGlobalLogger |
| std::unique_ptr< CMemoryLogger > | m_pMemoryLogger |
| std::mutex | m_Lock |
Friends | |
| class | CTestLogListener |
Additional Inherited Members | |
| Protected Attributes inherited from ILogger | |
| CLogFilter | m_Filter |
|
inline |
|
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.
Reimplemented from ILogger.
|
inlineoverridevirtual |
Send the specified message to the logging backend.
| pMessage | Struct describing the log message. |
Implements ILogger.
|
friend |
|
private |
|
private |
|
private |