Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
composite_writer.h File Reference

Composite writer combining formatter and sink (Pipeline Pattern) kcenon. More...

Include dependency graph for composite_writer.h:
This graph shows which files directly or indirectly include this file:

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_writerkcenon::logger::make_composite_writer (std::unique_ptr< log_formatter_interface > formatter, std::unique_ptr< output_sink_interface > sink)
 

Detailed Description

Composite writer combining formatter and sink (Pipeline Pattern) kcenon.

Since
1.3.0
Version
Sprint 5-6 - Writer Refactoring

Implements the Pipeline pattern by composing a formatter and sink. This follows the Single Responsibility Principle by delegating:

  • Formatting to log_formatter_interface
  • I/O to log_sink_interface

The writer simply coordinates the pipeline: entry -> format -> write

Definition in file composite_writer.h.