FileLogger#
- class FileLogger(logdir='.')[source]#
Bases:
LoggerLogger that writes messages to a file.
- Parameters:
logdir (str) – Destination directory to store the logs.
Methods
__init__([logdir])log(params, infidelity)Write the formatted parameters and the goal to the log file.
start()Start logging.
stop([result_message])Stop logging and end the log file with the run information.
Attributes
Returns the current log directory.