NASLib is a Neural Architecture Search (NAS) library for facilitating NAS research for the community by providing interfaces to several state-of-the-art NAS search spaces and optimizers.
Apache License 2.0
528
stars
117
forks
source link
Remove all handlers in setup_logger before adding the desired ones #31
The logging setup of setup_logger does not remove the old stream handlers added for a logger.
If one uses the logger in a loop every new logger adds a new stream handler.
This will not only increase the size of the logs as every log to std.out is done multiple times but it will also write into unwanted logfiles.
E.g. if we want a different log directory for each configuration and thus call setup logger multiple times the results of subsequent runs are written to every previous log file.
The logging setup of setup_logger does not remove the old stream handlers added for a logger. If one uses the logger in a loop every new logger adds a new stream handler. This will not only increase the size of the logs as every log to std.out is done multiple times but it will also write into unwanted logfiles. E.g. if we want a different log directory for each configuration and thus call setup logger multiple times the results of subsequent runs are written to every previous log file.