Last change
on this file since 9581 was
9578,
checked in by Henrik Bettermann, 12 years ago
|
Disable developer mode. Disable access.log in deploy-config.
|
File size:
1.3 KB
|
Line | |
---|
1 | # debug.ini |
---|
2 | # |
---|
3 | # Debugging configuration for use with paster/WSGI |
---|
4 | # |
---|
5 | |
---|
6 | [loggers] |
---|
7 | # add 'wsgi' if you want the access.log to be generated |
---|
8 | keys = root, async, async_trace |
---|
9 | |
---|
10 | [handlers] |
---|
11 | keys = console, accesslog |
---|
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 | |
---|
22 | [handler_console] |
---|
23 | class = StreamHandler |
---|
24 | args = (sys.stderr,) |
---|
25 | level = NOTSET |
---|
26 | formatter = generic |
---|
27 | |
---|
28 | [handler_accesslog] |
---|
29 | class = FileHandler |
---|
30 | args = (os.path.join(r'${zope_conf:logfiles}', 'access.log'), |
---|
31 | 'a') |
---|
32 | level = INFO |
---|
33 | formatter = accesslog |
---|
34 | |
---|
35 | [logger_root] |
---|
36 | level = INFO |
---|
37 | handlers = console |
---|
38 | |
---|
39 | [logger_wsgi] |
---|
40 | level = INFO |
---|
41 | handlers = accesslog |
---|
42 | qualname = wsgi |
---|
43 | propagate = 0 |
---|
44 | |
---|
45 | [filter:translogger] |
---|
46 | use = egg:Paste#translogger |
---|
47 | setup_console_handler = False |
---|
48 | logger_name = wsgi |
---|
49 | |
---|
50 | [filter-app:main] |
---|
51 | # Change the last part from 'ajax' to 'pdb' for a post-mortem debugger |
---|
52 | # on the console: |
---|
53 | use = egg:z3c.evalexception#ajax |
---|
54 | next = zope |
---|
55 | |
---|
56 | [app:zope] |
---|
57 | use = egg:waeup.futminna#debug |
---|
58 | filter-with = translogger |
---|
59 | exempt-exceptions = zope.security.interfaces.IUnauthorized |
---|
60 | |
---|
61 | [server:main] |
---|
62 | use = egg:Paste#http |
---|
63 | host = ${kofa_params:host} |
---|
64 | port = ${kofa_params:base_port} |
---|
65 | |
---|
66 | [DEFAULT] |
---|
67 | # set the name of the zope.conf file |
---|
68 | zope_conf = %(here)s/zope.conf |
---|
69 | env_vars = ZC_ASYNC_UUID ${buildout:directory}/var/uuid1.txt |
---|
Note: See
TracBrowser for help on using the repository browser.