|
UCILoader 1.1.2
Small C++ library that allows user to connect to a chess engines via UCI protocol.
|
Abstract base class for logger traits that customize logger behavior. More...
#include <Logger.h>
Inherited by WrapperTrait< WrapperClass >.
Public Member Functions | |
| virtual | ~LoggerTrait ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
| virtual std::unique_ptr< Logger > | addTo (std::unique_ptr< Logger > &&logger) const =0 |
| Apply this trait to a logger by wrapping it. | |
Abstract base class for logger traits that customize logger behavior.
The LoggerTrait mechanism provides a flexible way to add functionality to loggers using the decorator pattern. Traits can be composed together to apply multiple behaviors to a single logger.
Common use cases:
Example usage with LoggerBuilder:
|
pure virtual |
Apply this trait to a logger by wrapping it.
Implementations should create a wrapper that applies the trait's behavior to the provided logger.
| logger | The logger to apply this trait to |