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

Base class for decorator pattern writers. More...

#include "../interfaces/log_writer_interface.h"
#include "../interfaces/writer_category.h"
#include <kcenon/logger/logger_export.h>
#include <memory>
#include <string>
#include <string_view>
Include dependency graph for decorator_writer_base.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::logger::decorator_writer_base
 Abstract base class for decorator pattern log writers. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::logger
 

Detailed Description

Base class for decorator pattern writers.

Author
kcenon
Since
4.0.0

This file defines decorator_writer_base, a common base class for all decorator pattern implementations in the writer hierarchy. It eliminates code duplication across decorator writers by providing default implementations for wrapped writer management, health status propagation, name delegation, and flush operations.

Part of the Decorator pattern refactoring (#356).

Definition in file decorator_writer_base.h.