|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Composite writer combining formatter and sink (Pipeline Pattern) kcenon. More...
#include <memory>#include "../interfaces/log_writer_interface.h"#include "../interfaces/log_formatter_interface.h"#include "../interfaces/output_sink_interface.h"#include "../interfaces/writer_category.h"

Go to the source code of this file.
Classes | |
| class | kcenon::logger::composite_writer |
| Coordinates formatting and output through a pipeline. More... | |
Namespaces | |
| namespace | kcenon |
| namespace | kcenon::logger |
Functions | |
| std::unique_ptr< composite_writer > | kcenon::logger::make_composite_writer (std::unique_ptr< log_formatter_interface > formatter, std::unique_ptr< output_sink_interface > sink) |
Composite writer combining formatter and sink (Pipeline Pattern) kcenon.
Implements the Pipeline pattern by composing a formatter and sink. This follows the Single Responsibility Principle by delegating:
The writer simply coordinates the pipeline: entry -> format -> write
Definition in file composite_writer.h.