Change format of console logging messages to have a meaningful timestamp

svn: r21296
This commit is contained in:
Tim G L Lyons 2013-02-04 19:15:22 +00:00
parent 7f10ab796e
commit db4977c244

View File

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