Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (60 sloc) 1.47 KB
[app:main]
use = egg:shootout
pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.debug_templates = true
pyramid.default_locale_name = en
pyramid.includes = pyramid_tm
pyramid_exclog
session.secret = ^5$309^vJ-*
sqlalchemy.url = sqlite:///%(here)s/shootout.db
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
# Begin logging configuration
[loggers]
keys = root, shootout, sqlalchemy, exc_logger
[handlers]
keys = console, exc_handler
[formatters]
keys = generic, exc_formatter
[logger_root]
level = INFO
handlers = console
[logger_shootout]
level = DEBUG
handlers =
qualname = shootout
[logger_exc_logger]
level = ERROR
handlers = exc_handler
qualname = exc_logger
[logger_sqlalchemy]
level = INFO
handlers =
qualname = sqlalchemy.engine
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither. (Recommended for production systems.)
[logger_exc_logger]
level = ERROR
handlers = exc_handler
qualname = exc_logger
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[handler_exc_handler]
class = FileHandler
args = ('%(here)s/exception.log',)
level = ERROR
formatter = exc_formatter
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
[formatter_exc_formatter]
format = %(asctime)s %(message)s
# End logging configuration
Jump to Line
Something went wrong with that request. Please try again.