From f1a8f91d51745e4b88abd204f50cc778559db56e Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 5 Aug 2014 23:07:53 +0200 Subject: [PATCH] log: Adjust colors so warnings/errors are more visible. --- qutebrowser/utils/log.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index c6a18db53..bb1b23e60 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -48,17 +48,18 @@ EXTENDED_FMT = ('{asctime:8} {levelname:8} {name:10} {module}:{funcName}:' '{lineno} {message}') SIMPLE_FMT_COLORED = '%(log_color)s%(levelname)s%(reset)s: %(message)s' EXTENDED_FMT_COLORED = ('%(green)s%(asctime)-8s%(reset)s %(log_color)s' - '%(levelname)-8s%(reset)s %(yellow)s%(name)-10s ' + '%(levelname)-8s%(reset)s %(cyan)s%(name)-10s ' '%(module)s:%(funcName)s:%(lineno)s%(reset)s ' - '%(message)s') + '%(log_color)s%(message)s%(reset)s') EXTENDED_FMT_HTML = ('
%(green)s%(asctime)-8s%(reset)s
' '
%(log_color)s%(levelname)-8s%(reset)s
' - '%(yellow)s%(name)-10s' + '%(cyan)s%(name)-10s' '
%(module)s:%(funcName)s:%(lineno)s%(reset)s'
-                     '
%(message)s
') + '
%(log_color)s%(message)s%(reset)s'
+                     '
') DATEFMT = '%H:%M:%S' LOG_COLORS = { - 'DEBUG': 'cyan', + 'DEBUG': 'white', 'INFO': 'green', 'WARNING': 'yellow', 'ERROR': 'red',