My Project  v0.0.16
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ColorizingStreamHandler Class Reference
Inheritance diagram for ColorizingStreamHandler:
Inheritance graph
[legend]
Collaboration diagram for ColorizingStreamHandler:
Collaboration graph
[legend]

Public Member Functions

Public Attributes

Static Public Attributes

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  level_map = None,
  args,
  kwargs 
)

Member Function Documentation

◆ colorize()

def colorize (   self,
  message,
  record 
)

◆ emit()

def emit (   self,
  record 
)

◆ format()

def format (   self,
  record 
)

◆ is_tty()

def is_tty (   self)

◆ output_colorized()

def output_colorized (   self,
  message 
)

Member Data Documentation

◆ color_map

dictionary color_map
static
Initial value:
= {
'black': 0,
'red': 1,
'green': 2,
'yellow': 3,
'blue': 4,
'magenta': 5,
'cyan': 6,
'white': 7,
}

◆ csi

string csi = '\x1b['
static

◆ level_map [1/2]

dictionary level_map
static
Initial value:
= {
logging.DEBUG: (None, 'cyan', False),
logging.INFO: (None, 'blue', False),
logging.NOTICE: (None, 'green', False),
logging.WARNING: (None, 'yellow', False),
logging.ERROR: (None, 'red', False),
logging.CRITICAL: ('red', 'white', True),
}

◆ level_map [2/2]

level_map

◆ reset

string reset = '\x1b[0m'
static

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