#include <StreamLogSink.h>
◆ StreamLogSink() [1/2]
| StreamLogSink::StreamLogSink |
( |
std::unique_ptr< OutputStream > |
stream | ) |
|
|
explicit |
◆ StreamLogSink() [2/2]
◆ ~StreamLogSink()
| StreamLogSink::~StreamLogSink |
( |
| ) |
|
|
virtualdefault |
◆ initFormatter()
| void StreamLogSink::initFormatter |
( |
| ) |
|
|
private |
◆ write()
| void StreamLogSink::write |
( |
const LogCategory & |
category, |
|
|
LogLevel |
level, |
|
|
std::string_view |
message |
|
) |
| |
|
overridevirtual |
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.
- Parameters
-
| category | Log category. |
| level | Log level. |
| message | Log message. |
Implements LogSink.
◆ _formatter
| std::unique_ptr<spdlog::formatter> StreamLogSink::_formatter |
|
private |
◆ _ownStream
◆ _stream
The documentation for this class was generated from the following files: