From 1a5be24d5616c134fa6c71339aa508380804d1f8 Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Mon, 4 Feb 2013 19:14:29 +0000 Subject: [PATCH] Change format of console logging messages to have a meaningful timestamp svn: r21295 --- gramps/grampsapp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/grampsapp.py b/gramps/grampsapp.py index 065be64a5..1c184b2f8 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():