Change format of console logging messages to have a meaningful timestamp
svn: r21295
This commit is contained in:
parent
553baa596a
commit
1a5be24d56
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user