# profile.ini # # Profiling configuration for use with paster/WSGI # # Call http://localhost:8080/__profile__ to see the profiler in action [loggers] keys = root, wsgi [handlers] keys = console, accesslog [formatters] keys = generic, accesslog [logger_root] level = INFO handlers = console [logger_wsgi] level = INFO handlers = accesslog qualname = wsgi propagate = 0 [handler_console] class = StreamHandler args = (sys.stderr,) level = NOTSET formatter = generic [handler_accesslog] class = FileHandler args = (os.path.join(r'${zope_conf:logfiles}', 'access.log'), 'a') level = INFO formatter = accesslog [formatter_generic] format = %(asctime)s %(levelname)s [%(name)s] %(message)s [formatter_accesslog] format = %(message)s [filter:translogger] use = egg:Paste#translogger setup_console_handler = False logger_name = wsgi [filter:profiler] use = egg:repoze.profile#profile log_filename = kofa.profile #cachegrind_filename = cachegrind.out.kofa discard_first_request = False path = /__profile__ flush_at_shutdown = False [app:app] use = egg:kofacustom.dspou [pipeline:main] pipeline = translogger profiler app [server:main] use = egg:Paste#http host = ${kofa_params:host} port = ${kofa_params:base_port} [DEFAULT] # set the name of the zope.conf file zope_conf = %(here)s/zope.conf env_vars = ZC_ASYNC_UUID ${buildout:directory}/var/uuid1.txt