A base class for logger streams based on standard streams.
More...
#include <base_standard_streams_stream.h>
|
| | base_standard_streams_stream (const config &streamConfig) noexcept |
| | base_standard_streams_stream object constructor More...
|
| |
| virtual void | do_log (const category &category, verbosity eVerbosity, std::thread::id threadId, std::chrono::system_clock::time_point messageTime, string_view svFile, string_view svFunction, int nLine, string_view svMessage) override |
| | Proceed stream logging. More...
|
| |
| | base_logger_stream (const config &streamConfig) noexcept |
| | base_logger_stream object constructor More...
|
| |
| void | log (const category &category, verbosity eVerbosity, std::thread::id threadId, std::chrono::system_clock::time_point messageTime, string_view svFile, string_view svFunction, int nLine, string_view svMessage) |
| | Output to stream. More...
|
| |
|
void | flush () |
| | Flush the stream.
|
| |
| virtual bool | log_unconditionally_required (const category &category, verbosity eVerbosity, std::thread::id threadId, std::chrono::system_clock::time_point messageTime, string_view svFile, string_view svFunction, int nLine) const noexcept |
| | Returns true if this message should be processed by this stream even if the logger filters did not pass it. More...
|
| |
A base class for logger streams based on standard streams.
- Author
- Khrapov
- Date
- 18.01.2026
Definition at line 25 of file base_standard_streams_stream.h.
◆ base_standard_streams_stream()
| qx::base_standard_streams_stream::base_standard_streams_stream |
( |
const config & |
streamConfig | ) |
|
|
inlinenoexcept |
◆ check_previous_message()
| void qx::base_standard_streams_stream::check_previous_message |
( |
verbosity |
eCurrentMessageVerbosity | ) |
|
|
inlineprotected |
Check the previous message type and flush if needed.
- Parameters
-
| eCurrentMessageVerbosity | - current message verbosity |
Definition at line 107 of file base_standard_streams_stream.inl.
◆ do_log()
| void qx::base_standard_streams_stream::do_log |
( |
const category & |
category, |
|
|
verbosity |
eVerbosity, |
|
|
std::thread::id |
threadId, |
|
|
std::chrono::system_clock::time_point |
messageTime, |
|
|
string_view |
svFile, |
|
|
string_view |
svFunction, |
|
|
int |
nLine, |
|
|
string_view |
svMessage |
|
) |
| |
|
inlineoverridevirtual |
Proceed stream logging.
- Parameters
-
| category | - code category |
| eVerbosity | - this message verbosity |
| threadId | - thread where the log is called |
| messageTime | - message creation time |
| svFile | - file name string |
| svFunction | - function name string |
| nLine | - code line number |
| svMessage | - message string |
Implements qx::base_logger_stream.
Definition at line 20 of file base_standard_streams_stream.inl.
The documentation for this class was generated from the following files: