gedai.add_file_handler🔗

gedai.add_file_handler(fname, mode='a', encoding=None, *, verbose=None)🔗

Add a file handler to the logger.

Parameters:
fnamestr | Path

Path to the file where the logging output is saved.

modestr

Mode in which the file is opened.

encodingstr | None

If not None, encoding used to open the file.

verboseint | str | bool | None

Control verbosity of the logging output. If None, use the default verbosity level ("INFO"). If a boolean, True corresponds to "INFO" and False corresponds to "WARNING". The default is None (interpreted as "INFO").