simuran.core.log_handler module¶
File logging configuration for SIMURAN
-
simuran.core.log_handler.default_formatter()¶
-
simuran.core.log_handler.default_log_location()¶
-
simuran.core.log_handler.establish_main_logger(logger: logging.Logger) → None¶ Set the handlers on the simuran logger and simuran.module loggers.
-
simuran.core.log_handler.log_exception(ex, more_info='', location=None)¶ Log an expection to file and additional info.
Parameters: - ex (Exception) – The python exception that occurred
- more_info (str, optional) – Additional string to log, default is “”
- location (str, optional) – Where to store the log, default is home/.skm_python/caught_errors.txt
Returns: Return type: None
-
simuran.core.log_handler.set_only_log_to_file(log_location: Union[str, Path], logger: Optional[logging.Logger] = None, log_level: Union[str, int] = 'DEBUG')¶