Package gbp :: Module log

[hide private]
[frames] | no frames]

# Module log

Simple colored logging classes

Classes | [hide private]

| GbpFilter Filter for enabling selective output
| GbpStreamHandler Special stream handler for enabling colored output
| GbpLogger Logger class for git-buildpackage

Functions | [hide private]

err(msg) Logs a message with level ERROR on the GBP logger |

error(msg) |

warn(msg) Logs a message with level WARNING on the GBP logger |

warning(msg) |

info(msg) Logs a message with level INFO on the GBP logger |

debug(msg) Logs a message with level DEBUG on the GBP logger |

_parse_color_scheme(color_scheme=`'````'`) Set logging colors |

setup(color, verbose, color_scheme=`'````'`) Basic logger setup |

Variables | [hide private]

| COLORS = ``{``'``black``'``:` 30`,` `'``blue``'``:` 34`,` `'``cyan``'``:` 36`,` `'``green``'``:` 32`,` `'``m``...``
| DEFAULT_COLOR_SCHEME = ``{`10`:` 32`,` 20`:` 32`,` 30`:` 31`,` 40`:` 31`,` 50`:` 31`}``
| LOGGER = `<gbp.log.GbpLogger object>`
| __package__ = ``'``gbp``'``

Variables Details | [hide private]

### COLORS

Value:

      {'black': 30,
       'blue': 34,
       'cyan': 36,
       'green': 32,
       'magenta': 35,
       'none': 0,
       'red': 31,
       'white': 37,
      ...