Belle II Software  release-05-02-19
ColoredFormatter Class Reference
Inheritance diagram for ColoredFormatter:
Collaboration diagram for ColoredFormatter:

Public Member Functions

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

Public Attributes

 use_color
 use color output flag
 

Detailed Description

Define color convention for output messages.

Definition at line 981 of file CreateProdScripts.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  msg,
  use_color = True 
)
Constructor.

Attributes:
     use_color use color output flag

Definition at line 987 of file CreateProdScripts.py.

987  def __init__(self, msg, use_color=True):
988  """
989  Constructor.
990 
991  Attributes:
992  use_color use color output flag
993  """
994  logging.Formatter.__init__(self, msg)
995 
996 
997  self.use_color = use_color
998 

Member Function Documentation

◆ format()

def format (   self,
  record 
)
Set output format.

Definition at line 999 of file CreateProdScripts.py.


The documentation for this class was generated from the following file: