ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.logger.ColoredFormatter Class Reference
Inheritance diagram for python.logger.ColoredFormatter:
Collaboration diagram for python.logger.ColoredFormatter:

Public Member Functions

def __init__ (self, msg, use_color=True)
 
def format (self, record)
 

Public Attributes

 use_color
 

Detailed Description

Definition at line 35 of file DataQuality/DQUtils/python/logger.py.

Constructor & Destructor Documentation

◆ __init__()

def python.logger.ColoredFormatter.__init__ (   self,
  msg,
  use_color = True 
)

Definition at line 36 of file DataQuality/DQUtils/python/logger.py.

36  def __init__(self, msg, use_color=True):
37  logging.Formatter.__init__(self, msg)
38  self.use_color = use_color
39 

Member Function Documentation

◆ format()

def python.logger.ColoredFormatter.format (   self,
  record 
)

Definition at line 40 of file DataQuality/DQUtils/python/logger.py.

40  def format(self, record):
41  levelname = record.levelname
42  if self.use_color and levelname in COLORS:
43  color_seq = COLOR_SEQ % (30 + COLORS[levelname])
44  record.levelname = color_seq + levelname + RESET_SEQ
45  return logging.Formatter.format(self, record)
46 
47 

Member Data Documentation

◆ use_color

python.logger.ColoredFormatter.use_color

Definition at line 38 of file DataQuality/DQUtils/python/logger.py.


The documentation for this class was generated from the following file:
vtune_athena.format
format
Definition: vtune_athena.py:14
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18