Calls a function for each message, with the LogMessage or with the level and formatted line.
More...
#include <RST/log/Sinks/CallbackSink.hpp>
|
| void | log (const LogMessage &message) override |
| | Writes one message; called with the sink mutex locked.
|
| |
| virtual void | flushSink () |
| | Flushes the output; called with the sink mutex locked.
|
| |
| std::string_view | formatted (const LogMessage &message) |
| | The message formatted with the sink pattern.
|
| |
| std::mutex & | sinkMutex () noexcept |
| |
Calls a function for each message, with the LogMessage or with the level and formatted line.
◆ MessageCallback
◆ LineCallback
◆ CallbackSink() [1/3]
| RST::Log::CallbackSink::CallbackSink |
( |
| ) |
|
|
default |
◆ CallbackSink() [2/3]
◆ CallbackSink() [3/3]
| RST::Log::CallbackSink::CallbackSink |
( |
LineCallback |
callback | ) |
|
|
explicit |
◆ setCallback() [1/2]
◆ setCallback() [2/2]
| void RST::Log::CallbackSink::setCallback |
( |
LineCallback |
callback | ) |
|
◆ clearCallback()
| void RST::Log::CallbackSink::clearCallback |
( |
| ) |
|
◆ hasCallback()
| bool RST::Log::CallbackSink::hasCallback |
( |
| ) |
|
◆ log()
| void RST::Log::CallbackSink::log |
( |
const LogMessage & |
message | ) |
|
|
overrideprotectedvirtual |
Writes one message; called with the sink mutex locked.
Implements RST::Log::ASink.
The documentation for this class was generated from the following file: