[5493] | 1 | # debug.ini |
---|
| 2 | # |
---|
[10935] | 3 | # Debugging configuration for use with paster/WSGI and diazo |
---|
[5493] | 4 | # |
---|
| 5 | |
---|
| 6 | [loggers] |
---|
[9602] | 7 | keys = root, wsgi |
---|
[5493] | 8 | |
---|
| 9 | [handlers] |
---|
[9217] | 10 | keys = console, accesslog, asynclog, async_tracelog |
---|
[5493] | 11 | |
---|
| 12 | [formatters] |
---|
| 13 | keys = generic, accesslog |
---|
| 14 | |
---|
| 15 | [formatter_generic] |
---|
| 16 | format = %(asctime)s %(levelname)s [%(name)s] %(message)s |
---|
| 17 | |
---|
| 18 | [formatter_accesslog] |
---|
| 19 | format = %(message)s |
---|
| 20 | |
---|
[9217] | 21 | [handler_asynclog] |
---|
| 22 | class = FileHandler |
---|
| 23 | args = (os.path.join(r'${zope_conf:logfiles}', 'async.log'), |
---|
| 24 | 'a') |
---|
| 25 | level = INFO |
---|
| 26 | formatter = generic |
---|
| 27 | |
---|
| 28 | [handler_async_tracelog] |
---|
| 29 | class = FileHandler |
---|
| 30 | args = (os.path.join(r'${zope_conf:logfiles}', 'async_trace.log'), |
---|
| 31 | 'a') |
---|
| 32 | level = INFO |
---|
| 33 | formatter = generic |
---|
| 34 | |
---|
[5493] | 35 | [handler_console] |
---|
| 36 | class = StreamHandler |
---|
| 37 | args = (sys.stderr,) |
---|
| 38 | level = NOTSET |
---|
| 39 | formatter = generic |
---|
| 40 | |
---|
| 41 | [handler_accesslog] |
---|
| 42 | class = FileHandler |
---|
| 43 | args = (os.path.join(r'${zope_conf:logfiles}', 'access.log'), |
---|
| 44 | 'a') |
---|
| 45 | level = INFO |
---|
| 46 | formatter = accesslog |
---|
| 47 | |
---|
| 48 | [logger_root] |
---|
| 49 | level = INFO |
---|
| 50 | handlers = console |
---|
| 51 | |
---|
| 52 | [logger_wsgi] |
---|
| 53 | level = INFO |
---|
| 54 | handlers = accesslog |
---|
| 55 | qualname = wsgi |
---|
| 56 | propagate = 0 |
---|
| 57 | |
---|
[9217] | 58 | [logger_async] |
---|
| 59 | level = INFO |
---|
| 60 | handlers = asynclog |
---|
| 61 | qualname = zc.async |
---|
| 62 | propagate = 0 |
---|
| 63 | |
---|
| 64 | [logger_async_trace] |
---|
| 65 | level = INFO |
---|
| 66 | handlers = async_tracelog |
---|
| 67 | qualname = zc.async.trace |
---|
| 68 | propagate = 0 |
---|
| 69 | |
---|
[5493] | 70 | [filter:translogger] |
---|
| 71 | use = egg:Paste#translogger |
---|
| 72 | setup_console_handler = False |
---|
| 73 | logger_name = wsgi |
---|
| 74 | |
---|
[10935] | 75 | [filter:debugger] |
---|
[5493] | 76 | # Change the last part from 'ajax' to 'pdb' for a post-mortem debugger |
---|
| 77 | # on the console: |
---|
| 78 | use = egg:z3c.evalexception#ajax |
---|
| 79 | |
---|
| 80 | [app:zope] |
---|
[8796] | 81 | use = egg:${kofa_params:devel_pkg}#debug |
---|
[5493] | 82 | exempt-exceptions = zope.security.interfaces.IUnauthorized |
---|
| 83 | |
---|
[10935] | 84 | [app:bootstrap] |
---|
| 85 | use = egg:Paste#static |
---|
[10947] | 86 | document_root = %(LAYOUT_DIR)s/bootstrap/ |
---|
[10935] | 87 | |
---|
| 88 | [app:static] |
---|
| 89 | use = egg:Paste#static |
---|
| 90 | document_root = %(LAYOUT_DIR)s/static/ |
---|
| 91 | |
---|
| 92 | [composite:main] |
---|
| 93 | use = egg:Paste#urlmap |
---|
| 94 | /static/bootstrap = bootstrap |
---|
| 95 | /static/static = static |
---|
| 96 | / = default |
---|
| 97 | |
---|
| 98 | [filter:theme] |
---|
| 99 | use = egg:diazo |
---|
[10951] | 100 | rules = %(LAYOUT_DIR)s/rules.xml |
---|
[10935] | 101 | prefix = /static |
---|
| 102 | doctype = <!DOCTYPE html> |
---|
[10951] | 103 | # set to false, if you don't want rules.xml being rebuild on each request |
---|
[10935] | 104 | debug = true |
---|
| 105 | |
---|
| 106 | [pipeline:default] |
---|
| 107 | pipeline = theme |
---|
| 108 | translogger |
---|
| 109 | debugger |
---|
| 110 | zope |
---|
| 111 | |
---|
[5493] | 112 | [server:main] |
---|
| 113 | use = egg:Paste#http |
---|
[8662] | 114 | host = ${kofa_params:host} |
---|
| 115 | port = ${kofa_params:base_port} |
---|
[5493] | 116 | |
---|
| 117 | [DEFAULT] |
---|
| 118 | # set the name of the zope.conf file |
---|
[8796] | 119 | zope_conf = %(here)s/zope.conf |
---|
[9217] | 120 | env_vars = ZC_ASYNC_UUID ${buildout:directory}/var/uuid1.txt |
---|
[10935] | 121 | # the directory where all real diazo config is done (no trailing slash) |
---|
| 122 | LAYOUT_DIR = ${buildout:directory}/layout |
---|
| 123 | STATIC_DIR = %(LAYOUT_DIR)s/static |
---|