Base class for logger streams.
More...
#include <base_logger_stream.h>
|
| | 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...
|
| |
Base class for logger streams.
- Author
- Khrapov
- Date
- 28.07.2021
Definition at line 36 of file base_logger_stream.h.
◆ base_logger_stream()
| qx::base_logger_stream::base_logger_stream |
( |
const config & |
streamConfig | ) |
|
|
inlinenoexcept |
◆ log()
| void qx::base_logger_stream::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 |
|
) |
| |
|
inline |
Output to stream.
- Template Parameters
-
| char_t | - char type, typically char or wchar_t |
- Parameters
-
| category | - code category |
| eVerbosity | - 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 | - formatted log line |
Definition at line 63 of file base_logger_stream.inl.
◆ log_unconditionally_required()
| bool qx::base_logger_stream::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 |
|
inlinevirtualnoexcept |
Returns true if this message should be processed by this stream even if the logger filters did not pass it.
- Parameters
-
| category | - code category |
| eVerbosity | - 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 |
- Return values
-
| - | true is this message is unconditionally required by this stream |
Definition at line 100 of file base_logger_stream.inl.
The documentation for this class was generated from the following files: