# deploy.ini # # Deployment configuration for use with paster/WSGI # [loggers] keys = root, wsgi, async, async_trace [handlers] keys = null, console, accesslog, asynclog, async_tracelog [formatters] keys = generic, accesslog [logger_root] level = INFO handlers = console [logger_wsgi] level = INFO #handlers = accesslog handlers = null qualname = wsgi propagate = 0 [logger_async] level = INFO handlers = asynclog qualname = zc.async propagate = 0 [logger_async_trace] level = INFO handlers = async_tracelog qualname = zc.async.trace propagate = 0 [handler_null] # you can use 'NullHandler' (w/o the path) if under Python 2.7+ class = waeup.kofa.utils.helpers.NullHandler args = () level = NOTSET [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 [handler_asynclog] class = FileHandler args = (os.path.join(r'${zope_conf:logfiles}', 'async.log'), 'a') level = INFO formatter = generic [handler_async_tracelog] class = FileHandler args = (os.path.join(r'${zope_conf:logfiles}', 'async_trace.log'), 'a') level = INFO formatter = generic [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 [app:content] use = egg:${kofa_params:devel_pkg} filter-with = translogger [app:bootstrap] use = egg:Paste#static document_root = %(LAYOUT_DIR)s/bootstrap/dist/ [app:static] use = egg:Paste#static document_root = %(LAYOUT_DIR)s/static/ [composite:main] use = egg:Paste#urlmap /static/bootstrap = bootstrap /static/static = static / = default [server:main] use = egg:Paste#http host = ${kofa_params:host} port = ${kofa_params:base_port} [filter:theme] use = egg:diazo rules = %(LAYOUT_DIR)s/base.xml prefix = /static doctype = # set to true, if you want base.xml being rebuild on each request debug = false [pipeline:default] pipeline = theme content [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 # the directory where all real diazo config is done (no trailing slash) LAYOUT_DIR = ${buildout:directory}/layout STATIC_DIR = %(LAYOUT_DIR)s/static