getlogbook / logbook

A cool logging replacement for Python.
http://logbook.readthedocs.org
Other
1.48k stars 165 forks source link

Hardcoded colours for ColorizingStreamHandlerMixin need to be configurable #200

Open ghost opened 8 years ago

ghost commented 8 years ago

Not every terminal user uses the same colour scheme or even has a dark background for the terminal, so hardcoding "yellow" for record.level >= NOTICE is unhelpful without some way to configure it using environment variables. (e.g. django supports DJANGO_COLORS=warning=blue,bold;error=red,bold)

Please add support for LOGBOOK_COLORS or similar (and add to the docs).

vmalloc commented 8 years ago

Will get to it when possible. In the mean time, PRs are more than welcome!