From db4977c2449100ed2a29efdab8f880fcc52a1e06 Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Mon, 4 Feb 2013 19:15:22 +0000 Subject: [PATCH] Change format of console logging messages to have a meaningful timestamp svn: r21296 --- src/gramps.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gramps.py b/src/gramps.py index 002b12810..da9444104 100644 --- a/src/gramps.py +++ b/src/gramps.py @@ -62,7 +62,9 @@ import constfunc """Setup basic logging support.""" # Setup a formatter -form = logging.Formatter(fmt="%(relativeCreated)d: %(levelname)s: %(filename)s: line %(lineno)d: %(message)s") +form = logging.Formatter(fmt="%(asctime)s.%(msecs).03d: %(levelname)s: " + "%(filename)s: line %(lineno)d: %(message)s", + datefmt='%Y-%m-%d %H:%M:%S') # Create the log handlers if constfunc.win():