Commit 7a37b870 authored by Jérome Perrin's avatar Jérome Perrin

configure log output to be similar to zope2.8's event.log


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22630 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e6d913db
......@@ -242,10 +242,10 @@ def runUnitTestList(test_list, verbosity=1, debug=0):
from ZConfig.components.logger.handlers import FileHandlerFactory
from ZConfig.components.logger.logger import EventLogFactory
import logging
section = SectionValue({'dateformat': '%Y-%m-%dT%H:%M:%S',
'format': '------\n%(asctime)s %(levelname)s %(name)s %(message)s',
'level': logging.INFO,
'path': os.environ['EVENT_LOG_FILE']},
section = SectionValue({'dateformat': '%Y-%m-%d %H:%M:%S',
'format': '%(asctime)s %(levelname)s %(name)s %(message)s',
'level': logging.INFO,
'path': os.environ['EVENT_LOG_FILE']},
None, None)
section.handlers = [FileHandlerFactory(section)]
eventlog = EventLogFactory(section)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment