Public Member Functions | |
def | setLevel |
def | mapLevelLoggingToGaudi |
def | mapLevelGaudiToLogging |
def | all |
def | verbose |
Static Private Attributes | |
dictionary | __levelmap |
Definition at line 30 of file Logging.py.
def Logging::AthenaLogger::setLevel | ( | self, | ||
level | ||||
) |
Definition at line 39 of file Logging.py.
00039 : 00040 try: 00041 level = self.__levelmap[ level ] 00042 except KeyError: 00043 pass 00044 00045 super( AthenaLogger, self ).setLevel( level ) 00046 00047 @classmethod def mapLevelLoggingToGaudi( self, level ):
def Logging::AthenaLogger::mapLevelLoggingToGaudi | ( | self, | ||
level | ||||
) |
Definition at line 48 of file Logging.py.
00048 : 00049 for k,v in self.__levelmap.items(): 00050 if v == level: 00051 return k 00052 return level 00053 00054 @classmethod def mapLevelGaudiToLogging( self, level ):
def Logging::AthenaLogger::mapLevelGaudiToLogging | ( | self, | ||
level | ||||
) |
Definition at line 55 of file Logging.py.
00055 : 00056 try: 00057 return self.__levelmap[ level ] 00058 except KeyError: 00059 return level 00060 def all( self, msg, *args, **kwargs):
def Logging::AthenaLogger::all | ( | self, | ||
msg, | ||||
args, | ||||
kwargs | ||||
) |
Definition at line 61 of file Logging.py.
00061 : 00062 if self.manager.disable >= logging.ALL: 00063 return 00064 if logging.ALL >= self.getEffectiveLevel(): 00065 apply(self._log, (logging.ALL, msg, args), kwargs) 00066 def verbose( self, msg, *args, **kwargs):
def Logging::AthenaLogger::verbose | ( | self, | ||
msg, | ||||
args, | ||||
kwargs | ||||
) |
Definition at line 67 of file Logging.py.
00067 : 00068 if self.manager.disable >= logging.VERBOSE: 00069 return 00070 if logging.VERBOSE >= self.getEffectiveLevel(): 00071 apply(self._log, (logging.VERBOSE, msg, args), kwargs) 00072 00073 00074 logging.setLoggerClass( AthenaLogger ) 00075 00076 ### configure logger ---------------------------------------------------------
dictionary Logging::AthenaLogger::__levelmap [static, private] |
Initial value:
{ Constants.ALL : logging.ALL, Constants.VERBOSE : logging.VERBOSE, Constants.DEBUG : logging.DEBUG, Constants.INFO : logging.INFO, Constants.WARNING : logging.WARNING, Constants.ERROR : logging.ERROR, Constants.FATAL : logging.FATAL }
Definition at line 31 of file Logging.py.