summaryrefslogtreecommitdiff
path: root/docs/narr/myproject/production.ini
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2016-12-27 02:36:30 -0800
committerSteve Piercy <web@stevepiercy.com>2016-12-27 02:36:30 -0800
commite1b26edbb88ab51b1043ef82f093507d987cc2a4 (patch)
tree9cedc3b1e3d2eb33f7946273b0360a42ccfc8a23 /docs/narr/myproject/production.ini
parente2cda93d7422de50d014bcbacc2f4c31b95508bd (diff)
downloadpyramid-e1b26edbb88ab51b1043ef82f093507d987cc2a4.tar.gz
pyramid-e1b26edbb88ab51b1043ef82f093507d987cc2a4.tar.bz2
pyramid-e1b26edbb88ab51b1043ef82f093507d987cc2a4.zip
narr/project - update for cookiecutters
- update source files - update project.png - fix literalinclude reference in logging
Diffstat (limited to 'docs/narr/myproject/production.ini')
-rw-r--r--docs/narr/myproject/production.ini53
1 files changed, 53 insertions, 0 deletions
diff --git a/docs/narr/myproject/production.ini b/docs/narr/myproject/production.ini
new file mode 100644
index 000000000..13be488e7
--- /dev/null
+++ b/docs/narr/myproject/production.ini
@@ -0,0 +1,53 @@
+###
+# app configuration
+# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
+###
+
+[app:main]
+use = egg:myproject
+
+pyramid.reload_templates = false
+pyramid.debug_authorization = false
+pyramid.debug_notfound = false
+pyramid.debug_routematch = false
+pyramid.default_locale_name = en
+
+###
+# wsgi server configuration
+###
+
+[server:main]
+use = egg:waitress#main
+listen = *:6543
+
+###
+# logging configuration
+# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
+###
+
+[loggers]
+keys = root, myproject
+
+[handlers]
+keys = console
+
+[formatters]
+keys = generic
+
+[logger_root]
+level = WARN
+handlers = console
+
+[logger_myproject]
+level = WARN
+handlers =
+qualname = myproject
+
+[handler_console]
+class = StreamHandler
+args = (sys.stderr,)
+level = NOTSET
+formatter = generic
+
+[formatter_generic]
+format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s