paraqeet.file_logger.FileLogger#
- class paraqeet.file_logger.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.
- log(params, infidelity)[source]#
Write the formatted parameters and the goal to the log file.
- Parameters:
params (list[Quantity]) – List of quantities to be written to the log file.
infidelity (float) – Goal value to be written to the log file.
- property logdir: str#
Returns the current log directory.