rxn.utilities.logging.setup_file_logger
- rxn.utilities.logging.setup_file_logger(filename, level='INFO', format=LoggingFormat.BASIC)[source]
Set up a logger writing to the given file.
Overwrites the default file mode ‘a’ with ‘w’ (i.e., overwrites the file).
- Parameters
level (
Union
[int
,str
], default:'INFO'
) – log level, either as a string (“INFO”) or integer (logging.INFO).format (
Union
[LoggingFormat
,str
], default:<LoggingFormat.BASIC: '[%(asctime)s %(levelname)s] %(message)s'>
) – log format, as a LoggingFormat value, or a string directly.filename (
Union
[str
,PathLike
]) –
- Return type
None