Steve Piercy
2017-06-26 1c561a57eae2e66e463466ab784dcedf684771c8
commit | author | age
c87565 1 ###
SP 2 # app configuration
1c561a 3 # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
c87565 4 ###
SP 5
6 [app:main]
7 use = egg:hello_world
8
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
14 pyramid.includes =
15     pyramid_debugtoolbar
16
17 # By default, the toolbar only appears for clients from IP addresses
18 # '127.0.0.1' and '::1'.
19 # debugtoolbar.hosts = 127.0.0.1 ::1
20
21 ###
22 # wsgi server configuration
23 ###
24
25 [server:main]
26 use = egg:waitress#main
12fe4f 27 listen = localhost:6543
c87565 28
SP 29 ###
30 # logging configuration
1c561a 31 # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
c87565 32 ###
SP 33
34 [loggers]
35 keys = root, hello_world
36
37 [handlers]
38 keys = console
39
40 [formatters]
41 keys = generic
42
43 [logger_root]
44 level = INFO
45 handlers = console
46
47 [logger_hello_world]
48 level = DEBUG
49 handlers =
50 qualname = hello_world
51
52 [handler_console]
53 class = StreamHandler
54 args = (sys.stderr,)
55 level = NOTSET
56 formatter = generic
57
58 [formatter_generic]
59 format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s