Log message format like for apache

bzr revid: ced-85364a5f6ad1fed55aa455fe5896203bba0960d3
This commit is contained in:
ced 2007-08-30 14:22:15 +00:00
parent 5d01b2d7c2
commit d7ee32028d
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ def init_logger():
handler = logging.StreamHandler(sys.stdout)
# create a format for log messages and dates
formatter = logging.Formatter('%(asctime)s %(levelname)s:%(name)s:%(message)s', '%a, %d %b %Y %H:%M:%S')
formatter = logging.Formatter('[%(asctime)s] %(levelname)s:%(name)s:%(message)s', '%a %b %d %H:%M:%S %Y')
# tell the handler to use this format
handler.setFormatter(formatter)