Michael Merickel
2018-10-15 81576ee51564c49d5ff3c1c07f214f22a8438231
commit | author | age
9ee14a 1 ###
MM 2 # app configuration
19d341 3 # https://docs.pylonsproject.org/projects/pyramid/en/{{pyramid_docs_branch}}/narr/environment.html
9ee14a 4 ###
MM 5
3d338e 6 [app:main]
9cca72 7 use = egg:{{project}}
7ca773 8
MM 9 pyramid.reload_templates = true
10 pyramid.debug_authorization = false
11 pyramid.debug_notfound = false
12 pyramid.debug_routematch = false
13 pyramid.default_locale_name = en
28cf6b 14 pyramid.includes =
d21ba4 15     pyramid_debugtoolbar
9cca72 16
9ee14a 17 # By default, the toolbar only appears for clients from IP addresses
MM 18 # '127.0.0.1' and '::1'.
19 # debugtoolbar.hosts = 127.0.0.1 ::1
20
21 ###
22 # wsgi server configuration
23 ###
24
6ac10b 25 [server:main]
030d10 26 use = egg:waitress#main
6d120e 27 listen = localhost:6543
957f61 28
9ee14a 29 ###
MM 30 # logging configuration
19d341 31 # https://docs.pylonsproject.org/projects/pyramid/en/{{pyramid_docs_branch}}/narr/logging.html
9ee14a 32 ###
957f61 33
CM 34 [loggers]
b040b1 35 keys = root, {{package_logger}}
957f61 36
CM 37 [handlers]
38 keys = console
39
40 [formatters]
41 keys = generic
42
43 [logger_root]
44 level = INFO
45 handlers = console
46
b040b1 47 [logger_{{package_logger}}]
BL 48 level = DEBUG
49 handlers =
50 qualname = {{package}}
51
957f61 52 [handler_console]
CM 53 class = StreamHandler
54 args = (sys.stderr,)
55 level = NOTSET
56 formatter = generic
57
58 [formatter_generic]
45eb7d 59 format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s