diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-01-20 22:05:29 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-01-20 22:05:29 +0100 |
commit | 4d467ddda9266627f9c857142ea602d853b57c5e (patch) | |
tree | baf07f7288b94a362a1694885a1be035acc227f2 | |
parent | 21843511ef9e0482da917c9e01f1add1949fabde (diff) |
Add time to log format.
Useful for a quick check how long operations took.
-rw-r--r-- | alot/__main__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |