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