Logging

The python counterparts of HAL’s C++ log_* macros. Like the macros, every severity but info prefixes the message with the source location of the caller.

hal python bindings

hal_py.log_critical(channel: str, message: str) None

Log a message into a specific channel with severity critical. The message is prefixed with the file name and line number of the calling python code.

Parameters
  • channel (str) – The log channel’s name.

  • message (str) – The message to log.

hal_py.log_debug(channel: str, message: str) None

Log a message into a specific channel with severity debug. The message is prefixed with the file name and line number of the calling python code.

Parameters
  • channel (str) – The log channel’s name.

  • message (str) – The message to log.

hal_py.log_error(channel: str, message: str) None

Log a message into a specific channel with severity error. The message is prefixed with the file name and line number of the calling python code.

Parameters
  • channel (str) – The log channel’s name.

  • message (str) – The message to log.

hal_py.log_info(channel: str, message: str) None

Log a message into a specific channel with severity info.

Parameters
  • channel (str) – The log channel’s name.

  • message (str) – The message to log.

hal_py.log_trace(channel: str, message: str) None

Log a message into a specific channel with severity trace. The message is prefixed with the file name and line number of the calling python code.

Parameters
  • channel (str) – The log channel’s name.

  • message (str) – The message to log.

hal_py.log_warning(channel: str, message: str) None

Log a message into a specific channel with severity warning. The message is prefixed with the file name and line number of the calling python code.

Parameters
  • channel (str) – The log channel’s name.

  • message (str) – The message to log.