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: str = 'WARNING')[源代码]#

Initialize the EnvLogger.

参数:
  • log_file (str, optional) -- Path to the log file. Default is 'irsim_error.log'.

  • log_level (str, optional) -- Logging level. Default is 'WARNING'.

trace(msg: str) None[源代码]#

Log a trace message.

参数:

msg (str) -- The message to log.

info(msg: str) None[源代码]#

Log an info message.

参数:

msg (str) -- The message to log.

error(msg: str) None[源代码]#

Log an error message.

参数:

msg (str) -- The message to log.

debug(msg: str) None[源代码]#

Log a debug message.

参数:

msg (str) -- The message to log.

warning(msg: str) None[源代码]#

Log a warning message.

参数:

msg (str) -- The message to log.

success(msg: str) None[源代码]#

Log a success message.

参数:

msg (str) -- The message to log.

critical(msg: str) None[源代码]#

Log a critical message.

参数:

msg (str) -- The message to log.