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

Decorator that applies filtering to wrapped log writers. More...

Include dependency graph for filtered_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::filtered_writer
 Decorator that applies a filter to a wrapped writer. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::logger
 

Functions

std::unique_ptr< filtered_writerkcenon::logger::make_filtered_writer (std::unique_ptr< log_writer_interface > writer, std::unique_ptr< log_filter_interface > filter)
 Factory function to create a filtered writer.
 

Detailed Description

Decorator that applies filtering to wrapped log writers.

Author
kcenon
Since
4.0.0

This file defines the filtered_writer class, a Decorator pattern implementation that wraps any log_writer_interface and applies a filter before delegating writes. This enables composable filtering at the writer level, allowing different filters for different output destinations.

Part of the Decorator pattern refactoring (#356).

Definition in file filtered_writer.h.