|
OpenEnroth 9cf7432
|
#include <LogSink.h>
Public Member Functions | |
| virtual | ~LogSink ()=default |
| virtual void | write (const LogCategory &category, LogLevel level, std::string_view message)=0 |
Static Public Member Functions | |
| static std::unique_ptr< LogSink > | createDefaultSink () |
Log sink interface.
Log level handling & log formatting are done in Logger. LogSink implementations are expected to just dump the log message & do nothing else.
|
virtualdefault |
|
static |
|
pure virtual |
Writes out the log message.
Calls into write from the Logger instance are guaranteed to be serialized with a mutex, so you don't need to do any locking in your implementation.
| category | Log category. |
| level | Log level. |
| message | Log message. |
Implemented in BufferLogSink, DistLogSink, SpdlogSink< BaseSink >, StreamLogSink, and ScriptLogSink.