MISO2 Logger

MISO2 Logging routines

@author: bgrammer

model.config.MISO2_logger.get_MISO2_logger(log_filename, log_pathname, file_level=None, console_level=None, reset_handlers=True)

Configure the MISO2 logger.

Convenience function for configuring the MISO2 loggers.

Parameters:
  • log_filename (str) – Name of the log file.

  • log_pathname (str) – Path to save log file.

  • file_level (level) – Logging level. If None (default), no file log will be created.

  • console_level (level) – Logging level. If None (default), no console log will be created.

  • reset_handlers (bool) – If true, existing handlers will be removed before initialising new ones. Defaults to True.