ATLAS Offline Software
Classes | Functions | Variables
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

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

Variables

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

Function Documentation

◆ _setupLogger()

def python.Logging._setupLogger (   log)
private

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

94 def _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 )
105 _setupLogger( log )

◆ AthError()

def python.Logging.AthError (   descr)

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

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

◆ LogError()

def 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()

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

Variable Documentation

◆ __all__

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

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

◆ __author__

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

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

◆ __version__

string 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

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

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

◆ manager

python.Logging.manager

◆ msg

python.Logging.msg

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.

python._setupLogger
def _setupLogger(logger)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/__init__.py:21
python.Logging.LogError
def LogError(descr)
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/Logging.py:111
python.Logging.AthError
def AthError(descr)
Definition: Control/AthenaCommon/python/Logging.py:108
python.Logging.verbose
def verbose(self, msg, *args, **kwargs)
Definition: Tools/PyUtils/python/Logging.py:25