ATLAS Offline Software
Loading...
Searching...
No Matches
python.trfLogger Namespace Reference

Functions

 setRootLoggerLevel (level)
 Change the loggging level of the root logger.

Variables

 msg = logging.getLogger('PyJobTransforms')
 base logger Note we do not setup a root logger, as this has nasty interactions with the PyUtils root logger (double copies of messages).
dict stdLogLevels
 Map strings to standard logging levels FATAL is the same level as CRITICAL (used for parsing athena logfiles); ditto for VERBOSE==DEBUG.
list stdLogLevelsByCritcality = ['FATAL', 'CRITICAL', 'ERROR', 'WARNING', 'INFO', 'VERBOSE', 'DEBUG']
 This is the correct order to put the most serious stuff first.
 hdlr = logging.StreamHandler(sys.stdout)
 frmt = logging.Formatter("%(name)s.%(funcName)s %(asctime)s %(levelname)s %(message)s")

Function Documentation

◆ setRootLoggerLevel()

python.trfLogger.setRootLoggerLevel ( level)

Change the loggging level of the root logger.

Definition at line 56 of file trfLogger.py.

56def setRootLoggerLevel(level):
57 msg.setLevel(level)

Variable Documentation

◆ frmt

python.trfLogger.frmt = logging.Formatter("%(name)s.%(funcName)s %(asctime)s %(levelname)s %(message)s")

Definition at line 49 of file trfLogger.py.

◆ hdlr

python.trfLogger.hdlr = logging.StreamHandler(sys.stdout)

Definition at line 47 of file trfLogger.py.

◆ msg

python.trfLogger.msg = logging.getLogger('PyJobTransforms')

base logger Note we do not setup a root logger, as this has nasty interactions with the PyUtils root logger (double copies of messages).

Instead we log in the transform module space.

Definition at line 23 of file trfLogger.py.

◆ stdLogLevels

dict python.trfLogger.stdLogLevels
Initial value:
1= {'DEBUG' : logging.DEBUG,
2 'VERBOSE' : logging.DEBUG,
3 'INFO' : logging.INFO,
4 'WARNING' : logging.WARNING,
5 'ERROR' : logging.ERROR,
6 'CRITICAL' : logging.CRITICAL,
7 'FATAL' : logging.CRITICAL,
8 'CATASTROPHE' : logging.CRITICAL+10, # Special prority level to ensure an error is
9 # elevated to be the exitMsg
10 }

Map strings to standard logging levels FATAL is the same level as CRITICAL (used for parsing athena logfiles); ditto for VERBOSE==DEBUG.

Definition at line 27 of file trfLogger.py.

◆ stdLogLevelsByCritcality

list python.trfLogger.stdLogLevelsByCritcality = ['FATAL', 'CRITICAL', 'ERROR', 'WARNING', 'INFO', 'VERBOSE', 'DEBUG']

This is the correct order to put the most serious stuff first.

Definition at line 39 of file trfLogger.py.