|
UCILoader 1.1.2
Small C++ library that allows user to connect to a chess engines via UCI protocol.
|
Predefined logger traits for common customizations. More...
Variables | |
| const LoggerTrait & | Pretty = prettyLoggerInstance |
| Trait that formats log messages for human readability. | |
| const LoggerTrait & | IgnoreParser = ignoredParserLoggerInstance |
| Trait that filters out messages generated by the parser. | |
| const LoggerTrait & | IgnoreEngine = ignoreEngineLoggerInstance |
| Trait that filters out messages received from the engine. | |
| const LoggerTrait & | IgnoreApplication = ignoreApplicationLoggerInstance |
| Trait that filters out messages sent to the engine. | |
| const LoggerTrait & | Timestamp = timestampLoggerInstance |
| Trait that prepends timestamps to all logged messages. | |
Predefined logger traits for common customizations.
The LoggerTraits namespace provides ready-to-use traits that can be applied to loggers to customize their behavior. Traits can be combined using the pipe operator with LoggerBuilder.
Available Traits:
Usage Examples:
|
extern |
Trait that filters out messages sent to the engine.
Messages with direction ToEngine will be ignored.
|
extern |
Trait that filters out messages received from the engine.
Messages with direction FromEngine will be ignored.
|
extern |
Trait that filters out messages generated by the parser.
Messages with direction FromParser will be ignored.
|
extern |
Trait that formats log messages for human readability.
The Pretty trait enhances message formatting with clear direction indicators and structured output suitable for reading log files or console output.
|
extern |
Trait that prepends timestamps to all logged messages.
Useful for tracking the timing of UCI protocol exchanges.