From bb3ac61359c181367b5203e353f32c1bba0aef4f Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Mon, 4 Feb 2013 19:15:45 +0000 Subject: [PATCH] Change format of console logging messages to have a meaningful timestamp svn: r21297 --- gramps/grampsapp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/grampsapp.py b/gramps/grampsapp.py index 179168979..5a9fbbdd7 100644 --- a/gramps/grampsapp.py +++ b/gramps/grampsapp.py @@ -68,7 +68,9 @@ from .gen.constfunc import win """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 win():