Change format of console logging messages to have a meaningful timestamp
svn: r21296
This commit is contained in:
parent
7f10ab796e
commit
db4977c244
@ -62,7 +62,9 @@ import constfunc
|
|||||||
"""Setup basic logging support."""
|
"""Setup basic logging support."""
|
||||||
|
|
||||||
# Setup a formatter
|
# 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
|
# Create the log handlers
|
||||||
if constfunc.win():
|
if constfunc.win():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user