ATLAS Offline Software
Tools/PyUtils/python/Logging.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
3 
7 
8 __author__ = "Sebastien Binet"
9 
10 __all__ = ['msg', 'logging']
11 
12 try:
13  import AthenaCommon.Logging as L
14  msg = L.log
15  logging = L.logging
16 except ImportError:
17  import logging
18  logging.VERBOSE = logging.DEBUG - 1
19  logging.ALL = logging.DEBUG - 2
20  logging.addLevelName( logging.VERBOSE, 'VERBOSE' )
21  logging.addLevelName( logging.ALL, 'ALL' )
22  logging.basicConfig(level=logging.INFO,
23  format="Py:%(name)-14s%(levelname)8s %(message)s")
24  cls = logging.getLoggerClass()
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)
30  cls.verbose = verbose
31  del verbose
32 
33  log = msg = logging.getLogger("Athena")
34 
35 
python.Logging.verbose
verbose
Definition: Tools/PyUtils/python/Logging.py:30