Package yum :: Module logginglevels
[hide private]
[frames] | no frames]

Module logginglevels

source code

Custom logging levels for finer-grained logging using python's standard logging module.

Functions [hide private]
 
syslogFacilityMap(facility) source code
 
logLevelFromErrorLevel(error_level)
Convert an old-style error logging level to the new style.
source code
 
logLevelFromDebugLevel(debug_level)
Convert an old-style debug logging level to the new style.
source code
 
__convertLevel(level, table)
Convert yum logging levels using a lookup table.
source code
 
setDebugLevel(level) source code
 
setErrorLevel(level) source code
 
doLoggingSetup(debuglevel, errorlevel, syslog_ident=None, syslog_facility=None, syslog_device='/dev/log')
Configure the python logger.
source code
 
setFileLog(uid, logfile) source code
 
setLoggingApp(app) source code
Variables [hide private]
  INFO_1 = 19
  INFO_2 = 18
  DEBUG_1 = 9
  DEBUG_2 = 8
  DEBUG_3 = 7
  DEBUG_4 = 6
  __NO_LOGGING = 100
  syslog = None
  _syslog_facility_map = {'AUTH': 32, 'CRON': 72, 'DAEMON': 24, ...
  _added_handlers = False
  __package__ = 'yum'
Function Details [hide private]

doLoggingSetup(debuglevel, errorlevel, syslog_ident=None, syslog_facility=None, syslog_device='/dev/log')

source code 

Configure the python logger.

errorlevel is optional. If provided, it will override the logging level provided in the logging config file for error messages. debuglevel is optional. If provided, it will override the logging level provided in the logging config file for debug messages.


Variables Details [hide private]

_syslog_facility_map

Value:
{'AUTH': 32,
 'CRON': 72,
 'DAEMON': 24,
 'KERN': 0,
 'LOCAL0': 128,
 'LOCAL1': 136,
 'LOCAL2': 144,
 'LOCAL3': 152,
...