ATLAS Offline Software
Classes | Functions | Variables
python.TileCalibLogger Namespace Reference

Classes

class  TileCalibLogger
 

Functions

def setupFormat (lvl=logging.INFO)
 
def getLogger (name="TileCalib")
 

Variables

 NAMELENGTH
 

Function Documentation

◆ getLogger()

def python.TileCalibLogger.getLogger (   name = "TileCalib")

Definition at line 16 of file TileCalibLogger.py.

16 def getLogger(name="TileCalib"):
17  if len(name)>NAMELENGTH:
18  name = "..."+name[-NAMELENGTH+3:]
19  return logging.getLogger(name)
20 
21 #_____________________________________________________________________

◆ setupFormat()

def python.TileCalibLogger.setupFormat (   lvl = logging.INFO)

Definition at line 11 of file TileCalibLogger.py.

11 def setupFormat(lvl=logging.INFO):
12  myFormat = "%%(name)-%is: %%(levelname)-8s %%(message)s" % NAMELENGTH
13  logging.basicConfig(format=myFormat, level=lvl)
14 
15 #_____________________________________________________________________

Variable Documentation

◆ NAMELENGTH

python.TileCalibLogger.NAMELENGTH

Definition at line 8 of file TileCalibLogger.py.

python.TileCalibLogger.getLogger
def getLogger(name="TileCalib")
Definition: TileCalibLogger.py:16
python.TileCalibLogger.setupFormat
def setupFormat(lvl=logging.INFO)
Definition: TileCalibLogger.py:11