mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Remove cruft from Logger class
A big code simplification and cruft removing, make
Logger class a singleton and fully self conteined.
Also add direction indicators (">>" and "<<") to
better differentiate input and output lines in the
log file.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -33,7 +33,7 @@ OptionsMap Options; // Global object
|
||||
namespace {
|
||||
|
||||
/// 'On change' actions, triggered by an option's value change
|
||||
void on_logger(const UCIOption& opt) { logger_set(opt); }
|
||||
void on_logger(const UCIOption& opt) { start_logger(opt); }
|
||||
void on_eval(const UCIOption&) { Eval::init(); }
|
||||
void on_threads(const UCIOption&) { Threads.read_uci_options(); }
|
||||
void on_hash_size(const UCIOption& opt) { TT.set_size(opt); }
|
||||
|
||||
Reference in New Issue
Block a user