pycram.ros.ros1.logging#

Attributes#

Functions#

_get_caller_method_name()

Get the name of the method that called the function from which this function is called. It is intended as a helper

_get_caller_method_line()

Get the line of the method that called the function from which this function is called. It is intended as a helper

_get_caller_file_name()

Get the file name of the method that called the function from which this function is called. It is intended as a helper

set_logger_level(level)

Set the logger level for the pycram logger.

logwarn(message)

loginfo(message)

logerr(message)

logdebug(message)

logwarn_once(message)

loginfo_once(message)

logerr_once(message)

logdebug_once(message)

Module Contents#

pycram.ros.ros1.logging.PYCRAM_LOGGER_NAME = 'pycram'#
pycram.ros.ros1.logging.logger_level_service_caller#
pycram.ros.ros1.logging._get_caller_method_name()#

Get the name of the method that called the function from which this function is called. It is intended as a helper function for the log functions.

Returns:

Name of the method that called the function from which this function is called.

pycram.ros.ros1.logging._get_caller_method_line()#

Get the line of the method that called the function from which this function is called. It is intended as a helper function for the log functions.

Returns:

Line number of the method that called the function from which this function is called.

pycram.ros.ros1.logging._get_caller_file_name()#

Get the file name of the method that called the function from which this function is called. It is intended as a helper function for the log functions.

Returns:

File name of the method that called the function from which this function is called.

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

Set the logger level for the pycram logger.

Parameters:

level – The level to set the logger to, possible values are: rospy.DEBUG, rospy.INFO, rospy.WARN, rospy.ERROR,

rospy.FATAL.

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