pycram.ros.ros2.logging
=======================

.. py:module:: pycram.ros.ros2.logging


Functions
---------

.. autoapisummary::

   pycram.ros.ros2.logging.set_logger_level
   pycram.ros.ros2.logging.set_logger_format
   pycram.ros.ros2.logging.logwarn
   pycram.ros.ros2.logging.loginfo
   pycram.ros.ros2.logging.logerr
   pycram.ros.ros2.logging.logdebug
   pycram.ros.ros2.logging.logwarn_once
   pycram.ros.ros2.logging.loginfo_once
   pycram.ros.ros2.logging.logerr_once
   pycram.ros.ros2.logging.logdebug_once


Module Contents
---------------

.. py:function:: set_logger_level(level: pycram.datastructures.enums.LoggerLevel)

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

   :param level: The level to set the logger to.


.. py:function:: 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.

   :param logger_format: The format to set the logger to.


.. py:function:: logwarn(message: str)

.. py:function:: loginfo(message: str)

.. py:function:: logerr(message: str)

.. py:function:: logdebug(message: str)

.. py:function:: logwarn_once(message: str)

.. py:function:: loginfo_once(message: str)

.. py:function:: logerr_once(message: str)

.. py:function:: logdebug_once(message: str)

