pycram.ros.ros2.logging#

Functions#

set_logger_level(level)

Set the logger level for the pycram logger. Possible values are: DEBUG, INFO, WARN, ERROR, FATAL.

set_logger_format(logger_format)

Set the logger format for the pycram logger. The format can contain the following placeholders:

logwarn(message)

loginfo(message)

logerr(message)

logdebug(message)

logwarn_once(message)

loginfo_once(message)

logerr_once(message)

logdebug_once(message)

Module Contents#

pycram.ros.ros2.logging.set_logger_level(level: pycram.datastructures.enums.LoggerLevel)#

Set the logger level for the pycram logger. Possible values are: DEBUG, INFO, WARN, ERROR, FATAL.

Parameters:

level – The level to set the logger to.

pycram.ros.ros2.logging.set_logger_format(logger_format: str)#

Set the logger format for the pycram logger. The format can contain the following placeholders: - {severity} - {name} - {message} - {function_name} - {file_name} - {line_number} The format is set to the environment variable RCUTILS_CONSOLE_OUTPUT_FORMAT. Therefore, the format is not only applied to the pycram logger but to all loggers in the environment.

Parameters:

logger_format – The format to set the logger to.

pycram.ros.ros2.logging.logwarn(message: str)#
pycram.ros.ros2.logging.loginfo(message: str)#
pycram.ros.ros2.logging.logerr(message: str)#
pycram.ros.ros2.logging.logdebug(message: str)#
pycram.ros.ros2.logging.logwarn_once(message: str)#
pycram.ros.ros2.logging.loginfo_once(message: str)#
pycram.ros.ros2.logging.logerr_once(message: str)#
pycram.ros.ros2.logging.logdebug_once(message: str)#