Include timestamps in log messages

This commit is contained in:
Andrew Resch 2008-06-17 22:46:05 +00:00
parent 3d5a1d3540
commit f548dbce7c
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ import logging
# Setup the logger
logging.basicConfig(
level=logging.DEBUG,
format="[%(levelname)-8s] %(module)s:%(lineno)d %(message)s"
format="[%(levelname)-8s] %(asctime)s %(module)s:%(lineno)d %(message)s",
datefmt="%H:%M:%S"
)
# Get the logger