class documentation

class GbpStreamHandler(logging.StreamHandler):

View In Hierarchy

Special stream handler for enabling colored output

Method __init__ Undocumented
Method format Colorizing formatter
Method set_color Set/unset colorized output
Method set_color_scheme Set logging colors
Method set_format Set logging format
Constant COLOR_SEQ Undocumented
Constant OFF_SEQ Undocumented
Method _use_color Check if to print in color or not
Instance Variable _color Undocumented
Instance Variable _color_scheme Undocumented
def __init__(self, stream=None, color='auto'):

Undocumented

def format(self, record):

Colorizing formatter

def set_color(self, color):

Set/unset colorized output

def set_color_scheme(self, color_scheme={}):

Set logging colors

def set_format(self, fmt):

Set logging format

COLOR_SEQ: str =

Undocumented

Value
'\x1b[%dm'
OFF_SEQ: str =

Undocumented

Value
'\x1b[0m'
def _use_color(self):

Check if to print in color or not

_color =

Undocumented

_color_scheme =

Undocumented