summaryrefslogtreecommitdiff
path: root/gbp/log.py
AgeCommit message (Collapse)Author
2015-02-20Convert zip and map to listGuido Günther
to work towards Python3 support Gbp-Dch: Ignore
2014-12-05log: fix auto colorizing for custom streamsMarkus Lehtonen
Check for existence of isatty() method in the stream object. Some custom streams (e.g. in nose) do not necessarily have this. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-11-06log: add error and warning aliasesGuido Günther
since I tend to use them instead of err and warn. Closes: #728896
2013-01-16log: make color setting a tristate on/off/autoMarkus Lehtonen
Makes it possible to force color=on e.g. when piping output. Also, moves all 'auto' logic to one single place, i.e. the streamhandler. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-25gbp.log: Improve error message on broken color listsGuido Günther
2012-11-25log: add support for setting the color schemeMarkus Lehtonen
Implements changeable color schemes in the gbp.log module. Color scheme is given as a colon-separated list, with one color for each log level: '<debug_color>:<info_color>:<warning_colro>:<error_color>'. Colors can be given as an integer number (ANSI terminal color code) or color name (.e.g 'red'). Missing or empty fields are interpreted as using the default color for that log level. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-25gbp.log: lowercase the levelnameGuido Günther
too match the output before the switch to Python's logging module
2012-11-25log: rewrite the module to use Python logging moduleMarkus Lehtonen
Replaces the Logger with a new one, derived from the Logger class of the Python standard library. Colorized output is handled by a separate handler class. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2011-11-30Remove unused moduleGuido Günther
Git-Dch: Ignore
2011-02-08logging: don't use color inside Emacs's comint shellGuido Günther
Closes: #612384
2011-01-08Use tristate option for --color=valueGuido Günther
this allows true and false as alias for on and off.
2010-12-25Initialize Logger.get_color{,off}Guido Günther
so we can print errors before the option parsing finished. Closes: #608004
2010-11-16Add logging functionsGuido Günther
This allows us to color and prefix the output. Closes: #544332