Change format of console logging messages to have a meaningful timestamp

svn: r21295
This commit is contained in:
Tim G L Lyons 2013-02-04 19:14:29 +00:00
parent 553baa596a
commit 1a5be24d56

View File

@ -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():