module documentation

Simple colored logging classes

Class GbpFilter Filter for enabling selective output
Class GbpLogger Logger class for git-buildpackage
Class GbpStreamHandler Special stream handler for enabling colored output
Function debug Logs a message with level DEBUG on the GBP logger
Function err Logs a message with level ERROR on the GBP logger
Function info Logs a message with level INFO on the GBP logger
Function setup Basic logger setup
Function warn Logs a message with level WARNING on the GBP logger
Constant COLORS Undocumented
Constant DEFAULT_COLOR_SCHEME Undocumented
Constant LOGGER Undocumented
Function _parse_color_scheme Set logging colors
def debug(msg):

Logs a message with level DEBUG on the GBP logger

def err(msg):

Logs a message with level ERROR on the GBP logger

def info(msg):

Logs a message with level INFO on the GBP logger

def setup(color, verbose, color_scheme=''):

Basic logger setup

def warn(msg):

Logs a message with level WARNING on the GBP logger

COLORS =

Undocumented

Value
dict([('none', 0)]+list(zip(['black',
                             'red',
                             'green',
                             'yellow',
                             'blue',
                             'magenta',
                             'cyan',
...
DEFAULT_COLOR_SCHEME =

Undocumented

Value
{DEBUG: COLORS['green'],
 INFO: COLORS['green'],
 WARNING: COLORS['red'],
 ERROR: COLORS['red'],
 CRITICAL: COLORS['red']}
LOGGER =

Undocumented

Value
getLogger('gbp')
def _parse_color_scheme(color_scheme=''):

Set logging colors