Steve Piercy
2017-06-26 1c561a57eae2e66e463466ab784dcedf684771c8
commit | author | age
88995e 1 ###
SP 2 # app configuration
1c561a 3 # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
88995e 4 ###
SP 5
6 [app:main]
7 use = egg:tutorial
8
9 pyramid.reload_templates = false
10 pyramid.debug_authorization = false
11 pyramid.debug_notfound = false
12 pyramid.debug_routematch = false
13 pyramid.default_locale_name = en
14
15 zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000
16
17 ###
18 # wsgi server configuration
19 ###
20
21 [server:main]
22 use = egg:waitress#main
fb17a3 23 listen = *:6543
88995e 24
SP 25 ###
26 # logging configuration
1c561a 27 # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
88995e 28 ###
SP 29
30 [loggers]
31 keys = root, tutorial
32
33 [handlers]
34 keys = console
35
36 [formatters]
37 keys = generic
38
39 [logger_root]
40 level = WARN
41 handlers = console
42
43 [logger_tutorial]
44 level = WARN
45 handlers =
46 qualname = tutorial
47
48 [handler_console]
49 class = StreamHandler
50 args = (sys.stderr,)
51 level = NOTSET
52 formatter = generic
53
54 [formatter_generic]
55 format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s