pycram.ros.ros1.logging
=======================

.. py:module:: pycram.ros.ros1.logging


Attributes
----------

.. autoapisummary::

   pycram.ros.ros1.logging.PYCRAM_LOGGER_NAME
   pycram.ros.ros1.logging.logger_level_service_caller


Functions
---------

.. autoapisummary::

   pycram.ros.ros1.logging._get_caller_method_name
   pycram.ros.ros1.logging._get_caller_method_line
   pycram.ros.ros1.logging._get_caller_file_name
   pycram.ros.ros1.logging.set_logger_level
   pycram.ros.ros1.logging.logwarn
   pycram.ros.ros1.logging.loginfo
   pycram.ros.ros1.logging.logerr
   pycram.ros.ros1.logging.logdebug
   pycram.ros.ros1.logging.logwarn_once
   pycram.ros.ros1.logging.loginfo_once
   pycram.ros.ros1.logging.logerr_once
   pycram.ros.ros1.logging.logdebug_once


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

.. py:data:: PYCRAM_LOGGER_NAME
   :value: 'pycram'


.. py:data:: logger_level_service_caller

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

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


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

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


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

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


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

   Set the logger level for the pycram logger.

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


.. 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)

