[8007] | 1 | # deploy.ini |
---|
| 2 | # |
---|
| 3 | # Deployment configuration for use with paster/WSGI |
---|
| 4 | # |
---|
| 5 | |
---|
| 6 | [loggers] |
---|
[9217] | 7 | keys = root, wsgi, async, async_trace |
---|
[8007] | 8 | |
---|
| 9 | [handlers] |
---|
[9217] | 10 | keys = console, accesslog, asynclog, async_tracelog |
---|
[8007] | 11 | |
---|
| 12 | [formatters] |
---|
| 13 | keys = generic, accesslog |
---|
| 14 | |
---|
| 15 | [logger_root] |
---|
| 16 | level = INFO |
---|
| 17 | handlers = console |
---|
| 18 | |
---|
| 19 | [logger_wsgi] |
---|
| 20 | level = INFO |
---|
| 21 | handlers = accesslog |
---|
| 22 | qualname = wsgi |
---|
| 23 | propagate = 0 |
---|
| 24 | |
---|
[9217] | 25 | [logger_async] |
---|
| 26 | level = INFO |
---|
| 27 | handlers = asynclog |
---|
| 28 | qualname = zc.async |
---|
| 29 | propagate = 0 |
---|
| 30 | |
---|
| 31 | [logger_async_trace] |
---|
| 32 | level = INFO |
---|
| 33 | handlers = async_tracelog |
---|
| 34 | qualname = zc.async.trace |
---|
| 35 | propagate = 0 |
---|
| 36 | |
---|
[8007] | 37 | [handler_console] |
---|
| 38 | class = StreamHandler |
---|
| 39 | args = (sys.stderr,) |
---|
| 40 | level = NOTSET |
---|
| 41 | formatter = generic |
---|
| 42 | |
---|
| 43 | [handler_accesslog] |
---|
| 44 | class = FileHandler |
---|
| 45 | args = (os.path.join(r'${zope_conf:logfiles}', 'zeo1.log'), |
---|
| 46 | 'a') |
---|
| 47 | level = INFO |
---|
| 48 | formatter = accesslog |
---|
| 49 | |
---|
[9217] | 50 | [handler_asynclog] |
---|
| 51 | class = FileHandler |
---|
| 52 | args = (os.path.join(r'${zope_conf:logfiles}', 'zeo1_async.log'), |
---|
| 53 | 'a') |
---|
| 54 | level = INFO |
---|
| 55 | formatter = generic |
---|
| 56 | |
---|
| 57 | [handler_async_tracelog] |
---|
| 58 | class = FileHandler |
---|
| 59 | args = (os.path.join(r'${zope_conf:logfiles}', 'zeo1_async_trace.log'), |
---|
| 60 | 'a') |
---|
| 61 | level = INFO |
---|
| 62 | formatter = generic |
---|
| 63 | |
---|
[8007] | 64 | [formatter_generic] |
---|
| 65 | format = %(asctime)s %(levelname)s [%(name)s] %(message)s |
---|
| 66 | |
---|
| 67 | [formatter_accesslog] |
---|
| 68 | format = %(message)s |
---|
| 69 | |
---|
| 70 | [filter:translogger] |
---|
| 71 | use = egg:Paste#translogger |
---|
| 72 | setup_console_handler = False |
---|
| 73 | logger_name = wsgi |
---|
| 74 | |
---|
| 75 | [app:main] |
---|
[8796] | 76 | use = egg:${kofa_params:devel_pkg} |
---|
[8007] | 77 | filter-with = translogger |
---|
| 78 | |
---|
| 79 | [server:main] |
---|
| 80 | use = egg:Paste#http |
---|
[8662] | 81 | host = ${kofa_params:host} |
---|
| 82 | port = ${kofa_params:zeo1_port} |
---|
| 83 | threadpool_workers = ${kofa_params:threadpool_workers} |
---|
[8007] | 84 | use_threadpool = True |
---|
| 85 | |
---|
| 86 | [DEFAULT] |
---|
| 87 | # set the name of the zope.conf file |
---|
| 88 | zope_conf = %(here)s/zope_zeo1.conf |
---|
[9217] | 89 | env_vars = ZC_ASYNC_UUID ${buildout:directory}/var/uuid1.txt |
---|