|
UCILoader 1.1.2
Small C++ library that allows user to connect to a chess engines via UCI protocol.
|
Base interface for logging UCI protocol messages. More...
#include <Logger.h>
Public Types | |
| enum | MessageDirection { ToEngine , FromEngine , FromParser } |
| Enumeration of message directions for logging purposes. More... | |
Public Member Functions | |
| virtual | ~Logger ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
| virtual void | log (MessageDirection dir, const std::string &msg)=0 |
| Log a message with a specified direction. | |
Base interface for logging UCI protocol messages.
Provides an abstract interface for capturing messages exchanged with a chess engine via the UCI protocol. The Logger is responsible for recording messages sent to the engine, received from the engine, or generated by the parser.
This is the core logging interface that all concrete loggers must inherit from. Concrete implementations include file loggers, stream loggers, buffer loggers, and callback-based loggers. Loggers can be customized using LoggerTraits to add behavior such as timestamp formatting or filtering specific message types.
|
pure virtual |
Log a message with a specified direction.
| dir | The direction of the message (sent to engine, received from engine, or parsed) |
| msg | The message content to be logged |