add beaker, pyramid_exclog config to scaffold INI files
This commit is contained in:
parent
5373e8c68b
commit
a5c3e181ab
2 changed files with 22 additions and 2 deletions
|
@ -39,6 +39,11 @@ pyramid.debug_all = true
|
||||||
pyramid.default_locale_name = en
|
pyramid.default_locale_name = en
|
||||||
pyramid.includes = pyramid_debugtoolbar
|
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.
|
# Hack so edbob can find this file from within WSGI app.
|
||||||
edbob.config = %(here)s/development.ini
|
edbob.config = %(here)s/development.ini
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
# copy it to a location of your choice and edit for your
|
# copy it to a location of your choice and edit for your
|
||||||
# production needs.
|
# production needs.
|
||||||
#
|
#
|
||||||
|
# NOTE:
|
||||||
|
# Be sure to change the Beaker session secret!
|
||||||
|
#
|
||||||
############################################################
|
############################################################
|
||||||
|
|
||||||
[{{package}}]
|
[{{package}}]
|
||||||
|
@ -60,6 +63,14 @@ use = egg:{{package}}
|
||||||
pyramid.reload_templates = false
|
pyramid.reload_templates = false
|
||||||
pyramid.debug_all = false
|
pyramid.debug_all = false
|
||||||
pyramid.default_locale_name = en
|
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.
|
# Hack so edbob can find this file from within WSGI app.
|
||||||
edbob.config = %(here)s/production.ini
|
edbob.config = %(here)s/production.ini
|
||||||
|
@ -75,7 +86,7 @@ port = 6543
|
||||||
####################
|
####################
|
||||||
|
|
||||||
[loggers]
|
[loggers]
|
||||||
keys = root, {{package_logger}}
|
keys = root, {{package_logger}}, exc_logger
|
||||||
|
|
||||||
[handlers]
|
[handlers]
|
||||||
keys = file, console, email
|
keys = file, console, email
|
||||||
|
@ -84,7 +95,6 @@ keys = file, console, email
|
||||||
keys = generic, console
|
keys = generic, console
|
||||||
|
|
||||||
[logger_root]
|
[logger_root]
|
||||||
# handlers = file, console, email
|
|
||||||
handlers = file, console
|
handlers = file, console
|
||||||
level = WARNING
|
level = WARNING
|
||||||
|
|
||||||
|
@ -93,6 +103,11 @@ qualname = {{package}}
|
||||||
handlers =
|
handlers =
|
||||||
# level = NOTSET
|
# level = NOTSET
|
||||||
|
|
||||||
|
[logger_exc_logger]
|
||||||
|
qualname = exc_logger
|
||||||
|
handlers = email
|
||||||
|
level = ERROR
|
||||||
|
|
||||||
[handler_file]
|
[handler_file]
|
||||||
class = FileHandler
|
class = FileHandler
|
||||||
args = ('{{package}}.log', 'a')
|
args = ('{{package}}.log', 'a')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue