irsim.env.env_logger#

Classes#

EnvLogger

Initialize the EnvLogger.

Module Contents#

class irsim.env.env_logger.EnvLogger(log_file: str | None = 'irsim_error.log', log_level='WARNING')[source]#

Initialize the EnvLogger.

Parameters:
  • log_file (str, optional) – Path to the log file. Default is ‘irsim_error.log’.

  • log_level (str, optional) – Logging level. Default is ‘WARNING’.

info(msg)[source]#

Log an info message.

Parameters:

msg (str) – The message to log.

error(msg)[source]#

Log an error message.

Parameters:

msg (str) – The message to log.

debug(msg)[source]#

Log a debug message.

Parameters:

msg (str) – The message to log.

warning(msg)[source]#

Log a warning message.

Parameters:

msg (str) – The message to log.