Logging

rclpy.logging.clear_config() None

Clear the configuration of the logging system, e.g. logger levels.

rclpy.logging.get_logger(name: str) RcutilsLogger
rclpy.logging.get_logger_effective_level(name: str) LoggingSeverity
rclpy.logging.get_logger_level(name: str) LoggingSeverity
rclpy.logging.get_logging_directory() Path

Return the current logging directory being used.

For more details, rcl_logging_get_logging_directory()

rclpy.logging.get_logging_severity_from_string(log_severity: str) LoggingSeverity
rclpy.logging.initialize() None
rclpy.logging.set_logger_level(name: str, level: int | LoggingSeverity, detailed_error: bool = False) None
rclpy.logging.shutdown() None