From 4d467ddda9266627f9c857142ea602d853b57c5e Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 20 Jan 2021 22:05:29 +0100 Subject: Add time to log format. Useful for a quick check how long operations took. --- alot/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot/__main__.py') diff --git a/alot/__main__.py b/alot/__main__.py index 37d74f3b..c74e5d6f 100644 --- a/alot/__main__.py +++ b/alot/__main__.py @@ -95,7 +95,7 @@ def main(): root_logger.removeHandler(log_handler) root_logger = None numeric_loglevel = getattr(logging, options.debug_level.upper(), None) - logformat = '%(levelname)s:%(module)s[%(filename)s:%(lineno)d]:%(message)s' + logformat = '%(levelname)s:%(asctime)s:%(module)s[%(filename)s:%(lineno)d]:%(message)s' logging.basicConfig(level=numeric_loglevel, filename=options.logfile, filemode='w', format=logformat) -- cgit v1.2.3