|
qxLib
|
A stream that allows capturing all messages and redirecting them to error contexts. More...
#include <error_context_stream.h>
Public Member Functions | |
| threads_shared< on_message_delegates_map_t > & | get_on_messages () noexcept |
| Get on messages delegate. More... | |
| threads_shared< on_error_delegate, std::recursive_mutex > & | get_on_error () noexcept |
| Get on error delegate. More... | |
| void | on_error (std::thread::id errorThreadId) noexcept |
| Emit error event for all listeners. More... | |
Public Member Functions inherited from qx::base_logger_stream | |
| 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. | |
A stream that allows capturing all messages and redirecting them to error contexts.
Definition at line 30 of file error_context_stream.h.
|
inlinenoexcept |
Get on error delegate.
| - | on error delegate |
Definition at line 25 of file error_context_stream.inl.
|
inlinenoexcept |
Get on messages delegate.
| - | on messages delegate |
Definition at line 19 of file error_context_stream.inl.
|
inlinenoexcept |
Emit error event for all listeners.
| errorThreadId | - the thread where error occured |
Definition at line 31 of file error_context_stream.inl.