Log message format like for apache
bzr revid: ced-85364a5f6ad1fed55aa455fe5896203bba0960d3
This commit is contained in:
parent
5d01b2d7c2
commit
d7ee32028d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue