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

Classes

class  CaloCondLogger
 

Functions

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

Variables

int NAMELENGTH = 15
 

Function Documentation

◆ getLogger()

def python.CaloCondLogger.getLogger (   name = "CaloCond")

Definition at line 16 of file CaloCondLogger.py.

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

◆ setupFormat()

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

Definition at line 11 of file CaloCondLogger.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

int python.CaloCondLogger.NAMELENGTH = 15

Definition at line 8 of file CaloCondLogger.py.

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