commit | author | age
|
7bffb5
|
1 |
### |
BL |
2 |
# app configuration |
19d341
|
3 |
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html |
7bffb5
|
4 |
### |
BL |
5 |
|
3d338e
|
6 |
[app:main] |
e1b26e
|
7 |
use = egg:myproject |
c6d9f1
|
8 |
|
875ded
|
9 |
pyramid.reload_templates = false |
MM |
10 |
pyramid.debug_authorization = false |
|
11 |
pyramid.debug_notfound = false |
|
12 |
pyramid.debug_routematch = false |
|
13 |
pyramid.default_locale_name = en |
43ab04
|
14 |
|
7bffb5
|
15 |
### |
BL |
16 |
# wsgi server configuration |
|
17 |
### |
|
18 |
|
43ab04
|
19 |
[server:main] |
030d10
|
20 |
use = egg:waitress#main |
fb17a3
|
21 |
listen = *:6543 |
43ab04
|
22 |
|
7bffb5
|
23 |
### |
BL |
24 |
# logging configuration |
19d341
|
25 |
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html |
7bffb5
|
26 |
### |
43ab04
|
27 |
|
CM |
28 |
[loggers] |
|
29 |
keys = root, myproject |
|
30 |
|
|
31 |
[handlers] |
|
32 |
keys = console |
|
33 |
|
|
34 |
[formatters] |
|
35 |
keys = generic |
|
36 |
|
|
37 |
[logger_root] |
8fe021
|
38 |
level = WARN |
43ab04
|
39 |
handlers = console |
CM |
40 |
|
|
41 |
[logger_myproject] |
8fe021
|
42 |
level = WARN |
43ab04
|
43 |
handlers = |
CM |
44 |
qualname = myproject |
|
45 |
|
|
46 |
[handler_console] |
|
47 |
class = StreamHandler |
|
48 |
args = (sys.stderr,) |
|
49 |
level = NOTSET |
|
50 |
formatter = generic |
|
51 |
|
|
52 |
[formatter_generic] |
d4177a
|
53 |
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s |