Steve Piercy
2017-06-26 ea593f9dd35df6892fa73061dda22fdf8a8a6055
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
d21ba4 14 pyramid.includes =
CM 15     pyramid_debugtoolbar
16     pyramid_zodbconn
17     pyramid_tm
18
4d23e6 19 tm.attempts = 3
b25335 20 zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000
607d75 21
9ee14a 22 # By default, the toolbar only appears for clients from IP addresses
MM 23 # '127.0.0.1' and '::1'.
24 # debugtoolbar.hosts = 127.0.0.1 ::1
25
26 ###
27 # wsgi server configuration
28 ###
29
6ac10b 30 [server:main]
030d10 31 use = egg:waitress#main
6d120e 32 listen = localhost:6543
957f61 33
9ee14a 34 ###
MM 35 # logging configuration
19d341 36 # https://docs.pylonsproject.org/projects/pyramid/en/{{pyramid_docs_branch}}/narr/logging.html
9ee14a 37 ###
957f61 38
CM 39 [loggers]
b040b1 40 keys = root, {{package_logger}}
957f61 41
CM 42 [handlers]
43 keys = console
44
45 [formatters]
46 keys = generic
47
48 [logger_root]
49 level = INFO
50 handlers = console
51
b040b1 52 [logger_{{package_logger}}]
BL 53 level = DEBUG
54 handlers =
55 qualname = {{package}}
56
957f61 57 [handler_console]
CM 58 class = StreamHandler
59 args = (sys.stderr,)
60 level = NOTSET
61 formatter = generic
62
63 [formatter_generic]
45eb7d 64 format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s