summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-11-21 17:08:02 -0500
committerChris McDonough <chrism@plope.com>2010-11-21 17:08:02 -0500
commit957f614be664cb3b2015c39e2ac3441b7fda2f1b (patch)
tree048584e5963a8dbd9981021ae37862c2a36c7a8c /docs
parent12423894aa3facd9b6daa556cbc8cd8a5213c788 (diff)
downloadpyramid-957f614be664cb3b2015c39e2ac3441b7fda2f1b.tar.gz
pyramid-957f614be664cb3b2015c39e2ac3441b7fda2f1b.tar.bz2
pyramid-957f614be664cb3b2015c39e2ac3441b7fda2f1b.zip
- Add logging configuration to all paster templates.
- ``pyramid_alchemy``, ``pyramid_routesalchemy``, and ``pylons_sqla`` paster templates now use idiomatic SQLAlchemy configuration in their respective ``.ini`` files and Python code.
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/MyProject/development.ini26
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/narr/MyProject/development.ini b/docs/narr/MyProject/development.ini
index 9c51cfe6e..80d89e46a 100644
--- a/docs/narr/MyProject/development.ini
+++ b/docs/narr/MyProject/development.ini
@@ -15,3 +15,29 @@ pipeline =
use = egg:Paste#http
host = 0.0.0.0
port = 6543
+
+# Begin logging configuration
+
+[loggers]
+keys = root
+
+[handlers]
+keys = console
+
+[formatters]
+keys = generic
+
+[logger_root]
+level = INFO
+handlers = console
+
+[handler_console]
+class = StreamHandler
+args = (sys.stderr,)
+level = NOTSET
+formatter = generic
+
+[formatter_generic]
+format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
+
+# End logging configuration