From 53719366e0c725e80e859108b29f385ca46a45c0 Mon Sep 17 00:00:00 2001 From: avk Date: Fri, 12 Feb 2016 11:02:08 +0100 Subject: [PATCH] Added time to standard log --- qutebrowser/utils/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index 9023085cf..bacefa2b8 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -51,10 +51,10 @@ else: colorama.deinit() # Log formats to use. -SIMPLE_FMT = '{levelname}: {message}' +SIMPLE_FMT = '{asctime:8} {levelname}: {message}' EXTENDED_FMT = ('{asctime:8} {levelname:8} {name:10} {module}:{funcName}:' '{lineno} {message}') -SIMPLE_FMT_COLORED = '%(log_color)s%(levelname)s%(reset)s: %(message)s' +SIMPLE_FMT_COLORED = '%(green)s%(asctime)-8s%(reset)s %(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 '