|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Abstract interface for log output destinations (I/O only) More...
#include <output_sink_interface.h>


Public Member Functions | |
| virtual | ~output_sink_interface ()=default |
| virtual common::VoidResult | write_raw (std::string_view message)=0 |
| Write a pre-formatted message to the output destination. | |
| virtual common::VoidResult | flush ()=0 |
| Flush any buffered data. | |
| virtual bool | is_healthy () const =0 |
| Check if the sink is healthy. | |
| virtual std::string | get_name () const =0 |
| Get the name of this sink. | |
| virtual std::string | get_info () const |
| Get sink information. | |
Abstract interface for log output destinations (I/O only)
Defines the contract for outputting pre-formatted log messages. This is separate from log_sink_interface which handles async processing.
Definition at line 40 of file output_sink_interface.h.
|
virtualdefault |
|
pure virtual |
Flush any buffered data.
Implemented in kcenon::logger::console_sink, and kcenon::logger::file_sink.
|
inlinevirtual |
Get sink information.
Reimplemented in kcenon::logger::console_sink, and kcenon::logger::file_sink.
Definition at line 73 of file output_sink_interface.h.
|
pure virtual |
Get the name of this sink.
Implemented in kcenon::logger::console_sink, and kcenon::logger::file_sink.
|
pure virtual |
Check if the sink is healthy.
Implemented in kcenon::logger::console_sink, and kcenon::logger::file_sink.
|
pure virtual |
Write a pre-formatted message to the output destination.
| message | Pre-formatted log message |
Implemented in kcenon::logger::console_sink, and kcenon::logger::file_sink.