Package rosgraph :: Module roslogging
[frames] | no frames]

Module roslogging

source code

Library for configuring python logging to standard ROS locations (e.g. ROS_LOG_DIR).

Classes
  LoggingException
  RospyLogger
  RosStreamHandler
Functions
 
renew_latest_logdir(logfile_dir) source code
 
configure_logging(logname, level=20, filename=None, env=None)
Configure Python logging package to send log files to ROS-specific log directory :param logname str: name of logger, ``str`` :param filename: filename to log to.
source code
 
makedirs_with_parent_perms(p)
Create the directory using the permissions of the nearest (existing) parent directory.
source code
Variables
  __package__ = 'rosgraph'
Function Details

configure_logging(logname, level=20, filename=None, env=None)

source code 

Configure Python logging package to send log files to ROS-specific log directory
:param logname str: name of logger, ``str``
:param filename: filename to log to. If not set, a log filename
    will be generated using logname, ``str``
:param env: override os.environ dictionary, ``dict``
:returns: log file name, ``str``
:raises: :exc:`LoggingException` If logging cannot be configured as specified

makedirs_with_parent_perms(p)

source code 

Create the directory using the permissions of the nearest (existing) parent directory. This is useful for logging, where a root process sometimes has to log in the user's space. :param p: directory to create, ``str``