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, async, async_trace |
---|
9 | |
---|
10 | [handlers] |
---|
11 | keys = console, accesslog, asynclog, async_tracelog |
---|
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 | [logger_async] |
---|
27 | level = INFO |
---|
28 | handlers = asynclog |
---|
29 | qualname = zc.async |
---|
30 | propagate = 0 |
---|
31 | |
---|
32 | [logger_async_trace] |
---|
33 | level = INFO |
---|
34 | handlers = async_tracelog |
---|
35 | qualname = zc.async.trace |
---|
36 | propagate = 0 |
---|
37 | |
---|
38 | [handler_console] |
---|
39 | class = StreamHandler |
---|
40 | args = (sys.stderr,) |
---|
41 | level = NOTSET |
---|
42 | formatter = generic |
---|
43 | |
---|
44 | [handler_accesslog] |
---|
45 | class = FileHandler |
---|
46 | args = (os.path.join(r'${zope_conf:logfiles}', 'access.log'), |
---|
47 | 'a') |
---|
48 | level = INFO |
---|
49 | formatter = accesslog |
---|
50 | |
---|
51 | [handler_asynclog] |
---|
52 | class = FileHandler |
---|
53 | args = (os.path.join(r'${zope_conf:logfiles}', 'async.log'), |
---|
54 | 'a') |
---|
55 | level = INFO |
---|
56 | formatter = generic |
---|
57 | |
---|
58 | [handler_async_tracelog] |
---|
59 | class = FileHandler |
---|
60 | args = (os.path.join(r'${zope_conf:logfiles}', 'async_trace.log'), |
---|
61 | 'a') |
---|
62 | level = INFO |
---|
63 | formatter = generic |
---|
64 | |
---|
65 | [formatter_generic] |
---|
66 | format = %(asctime)s %(levelname)s [%(name)s] %(message)s |
---|
67 | |
---|
68 | [formatter_accesslog] |
---|
69 | format = %(message)s |
---|
70 | |
---|
71 | [filter:translogger] |
---|
72 | use = egg:Paste#translogger |
---|
73 | setup_console_handler = False |
---|
74 | logger_name = wsgi |
---|
75 | |
---|
76 | [filter:profiler] |
---|
77 | use = egg:repoze.profile#profile |
---|
78 | |
---|
79 | [app:app] |
---|
80 | use = egg:${ikoba_params:devel_pkg} |
---|
81 | |
---|
82 | [pipeline:main] |
---|
83 | pipeline = translogger profiler app |
---|
84 | |
---|
85 | [server:main] |
---|
86 | use = egg:Paste#http |
---|
87 | host = ${ikoba_params:host} |
---|
88 | port = ${ikoba_params:base_port} |
---|
89 | |
---|
90 | [DEFAULT] |
---|
91 | # set the name of the zope.conf file |
---|
92 | zope_conf = %(here)s/zope.conf |
---|
93 | env_vars = ZC_ASYNC_UUID ${buildout:directory}/var/uuid1.txt |
---|