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

Classes

class  AnaLogger
 specialized logger to allow setting with Gaudi-like message levels ===== More...
class  AthenaLogger
 specialized logger to allow setting with Gaudi message levels ============ More...

Functions

 _setupLogger (log)
 AthError (descr)
 LogError (descr)
 verbose (self, msg, *args, **kwargs)

Variables

str __version__ = '1.0.2'
 data _____________________________________________________________________
str __author__ = 'Wim Lavrijsen (WLavrijsen@lbl.gov)'
list __all__ = [ 'log', 'logging', 'AthError' ]
 VERBOSE
 configure logger module -----------------------------------------------—
 ALL
 log = logging.getLogger()
 configure logger ------------------------------------------------------—
 root
 manager
 msg = L.log
 logging = L.logging
 level
 format
 cls = logging.getLoggerClass()
 verbose

Detailed Description

Athena Python-side logging.
AnalysisBase Python-side logging.

Function Documentation

◆ _setupLogger()

python.Logging._setupLogger ( log)
protected

Definition at line 94 of file Control/AthenaCommon/python/Logging.py.

94def _setupLogger( log ):
95 import sys
96 log.name = "Athena"
97 hdlr = logging.StreamHandler( sys.stdout )
98 frmt = logging.Formatter( "Py:%(name)-14s%(levelname)8s %(message)s" )
99 hdlr.setFormatter( frmt )
100 for h in log.handlers: # basicConfig handler already installed?
101 if h.formatter._fmt == logging.BASIC_FORMAT:
102 log.removeHandler( h )
103 break
104 log.addHandler( hdlr )

◆ AthError()

python.Logging.AthError ( descr)

Definition at line 108 of file Control/AthenaCommon/python/Logging.py.

108def AthError( descr ):
109 raise RuntimeError( descr ) # <== Note exception!

◆ LogError()

python.Logging.LogError ( descr)

Definition at line 111 of file PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/Logging.py.

111 def LogError( descr ):
112 raise RuntimeError( descr ) # <== Note exception!

◆ verbose()

python.Logging.verbose ( self,
msg,
* args,
** kwargs )

Definition at line 25 of file Tools/PyUtils/python/Logging.py.

25 def verbose(self, msg, *args, **kwargs):
26 if self.manager.disable >= logging.VERBOSE:
27 return
28 if logging.VERBOSE >= self.getEffectiveLevel():
29 self._log(logging.VERBOSE, msg, args, **kwargs)
bool verbose
Definition hcg.cxx:73

Variable Documentation

◆ __all__

list python.Logging.__all__ = [ 'log', 'logging', 'AthError' ]
private

Definition at line 15 of file Control/AthenaCommon/python/Logging.py.

◆ __author__

str python.Logging.__author__ = 'Wim Lavrijsen (WLavrijsen@lbl.gov)'
private

Definition at line 13 of file Control/AthenaCommon/python/Logging.py.

◆ __version__

str python.Logging.__version__ = '1.0.2'
private

data _____________________________________________________________________

Definition at line 12 of file Control/AthenaCommon/python/Logging.py.

◆ ALL

python.Logging.ALL

Definition at line 25 of file Control/AthenaCommon/python/Logging.py.

◆ cls

python.Logging.cls = logging.getLoggerClass()

Definition at line 24 of file Tools/PyUtils/python/Logging.py.

◆ format

python.Logging.format

Definition at line 23 of file Tools/PyUtils/python/Logging.py.

◆ level

python.Logging.level

Definition at line 22 of file Tools/PyUtils/python/Logging.py.

◆ log

python.Logging.log = logging.getLogger()

configure logger ------------------------------------------------------—

Definition at line 93 of file Control/AthenaCommon/python/Logging.py.

◆ logging

python.Logging.logging = L.logging

Definition at line 15 of file Tools/PyUtils/python/Logging.py.

◆ manager

python.Logging.manager

◆ msg

python.Logging.msg = L.log

Definition at line 14 of file Tools/PyUtils/python/Logging.py.

◆ root

python.Logging.root

◆ VERBOSE

python.Logging.VERBOSE

configure logger module -----------------------------------------------—

Definition at line 24 of file Control/AthenaCommon/python/Logging.py.

◆ verbose

python.Logging.verbose

Definition at line 30 of file Tools/PyUtils/python/Logging.py.