Last change
on this file since 15068 was
14716,
checked in by Henrik Bettermann, 7 years ago
|
Rename package (step 2).
|
File size:
1.3 KB
|
Line | |
---|
1 | # profile.ini |
---|
2 | # |
---|
3 | # Profiling configuration for use with paster/WSGI |
---|
4 | # |
---|
5 | # Call http://localhost:8080/__profile__ to see the profiler in action |
---|
6 | |
---|
7 | [loggers] |
---|
8 | keys = root, wsgi |
---|
9 | |
---|
10 | [handlers] |
---|
11 | keys = console, accesslog |
---|
12 | |
---|
13 | [formatters] |
---|
14 | keys = generic, accesslog |
---|
15 | |
---|
16 | [logger_root] |
---|
17 | level = INFO |
---|
18 | handlers = console |
---|
19 | |
---|
20 | [logger_wsgi] |
---|
21 | level = INFO |
---|
22 | handlers = accesslog |
---|
23 | qualname = wsgi |
---|
24 | propagate = 0 |
---|
25 | |
---|
26 | [handler_console] |
---|
27 | class = StreamHandler |
---|
28 | args = (sys.stderr,) |
---|
29 | level = NOTSET |
---|
30 | formatter = generic |
---|
31 | |
---|
32 | [handler_accesslog] |
---|
33 | class = FileHandler |
---|
34 | args = (os.path.join(r'${zope_conf:logfiles}', 'access.log'), |
---|
35 | 'a') |
---|
36 | level = INFO |
---|
37 | formatter = accesslog |
---|
38 | |
---|
39 | [formatter_generic] |
---|
40 | format = %(asctime)s %(levelname)s [%(name)s] %(message)s |
---|
41 | |
---|
42 | [formatter_accesslog] |
---|
43 | format = %(message)s |
---|
44 | |
---|
45 | [filter:translogger] |
---|
46 | use = egg:Paste#translogger |
---|
47 | setup_console_handler = False |
---|
48 | logger_name = wsgi |
---|
49 | |
---|
50 | [filter:profiler] |
---|
51 | use = egg:repoze.profile#profile |
---|
52 | log_filename = kofa.profile |
---|
53 | #cachegrind_filename = cachegrind.out.kofa |
---|
54 | discard_first_request = False |
---|
55 | path = /__profile__ |
---|
56 | flush_at_shutdown = False |
---|
57 | |
---|
58 | [app:app] |
---|
59 | use = egg:kofacustom.dspg |
---|
60 | |
---|
61 | [pipeline:main] |
---|
62 | pipeline = translogger profiler app |
---|
63 | |
---|
64 | [server:main] |
---|
65 | use = egg:Paste#http |
---|
66 | host = ${kofa_params:host} |
---|
67 | port = ${kofa_params:base_port} |
---|
68 | |
---|
69 | [DEFAULT] |
---|
70 | # set the name of the zope.conf file |
---|
71 | zope_conf = %(here)s/zope.conf |
---|
72 | env_vars = ZC_ASYNC_UUID ${buildout:directory}/var/uuid1.txt |
---|
Note: See
TracBrowser for help on using the repository browser.