add beaker, pyramid_exclog config to scaffold INI files

This commit is contained in:
Lance Edgar 2012-09-04 09:06:15 -07:00
parent 5373e8c68b
commit a5c3e181ab
2 changed files with 22 additions and 2 deletions

View file

@ -39,6 +39,11 @@ pyramid.debug_all = true
pyramid.default_locale_name = en
pyramid.includes = pyramid_debugtoolbar
beaker.session.type = file
beaker.session.data_dir = %(here)s/sessions/data
beaker.session.lock_dir = %(here)s/sessions/lock
beaker.session.secret = 1qMAKR2[46+dIov*,wS+
# Hack so edbob can find this file from within WSGI app.
edbob.config = %(here)s/development.ini

View file

@ -7,6 +7,9 @@
# copy it to a location of your choice and edit for your
# production needs.
#
# NOTE:
# Be sure to change the Beaker session secret!
#
############################################################
[{{package}}]
@ -60,6 +63,14 @@ use = egg:{{package}}
pyramid.reload_templates = false
pyramid.debug_all = false
pyramid.default_locale_name = en
pyramid.includes = pyramid_exclog
beaker.session.type = file
beaker.session.data_dir = %(here)s/sessions/data
beaker.session.lock_dir = %(here)s/sessions/lock
beaker.session.secret = !!_CHANGE_ME_!! # should be 20 random characters
exclog.extra_info = true
# Hack so edbob can find this file from within WSGI app.
edbob.config = %(here)s/production.ini
@ -75,7 +86,7 @@ port = 6543
####################
[loggers]
keys = root, {{package_logger}}
keys = root, {{package_logger}}, exc_logger
[handlers]
keys = file, console, email
@ -84,7 +95,6 @@ keys = file, console, email
keys = generic, console
[logger_root]
# handlers = file, console, email
handlers = file, console
level = WARNING
@ -93,6 +103,11 @@ qualname = {{package}}
handlers =
# level = NOTSET
[logger_exc_logger]
qualname = exc_logger
handlers = email
level = ERROR
[handler_file]
class = FileHandler
args = ('{{package}}.log', 'a')