mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
qdd development2.ini for tests
This commit is contained in:
parent
5c91bb1d55
commit
ace4a0d6ec
95
examples/frameworks/pylonstest/development2.ini
Normal file
95
examples/frameworks/pylonstest/development2.ini
Normal file
@ -0,0 +1,95 @@
|
||||
#
|
||||
# pylonstest - Pylons development environment configuration
|
||||
#
|
||||
# The %(here)s variable will be replaced with the parent directory of this file
|
||||
#
|
||||
[DEFAULT]
|
||||
debug = true
|
||||
# Uncomment and replace with the address which should receive any error reports
|
||||
#email_to = you@yourdomain.com
|
||||
smtp_server = localhost
|
||||
error_email_from = paste@localhost
|
||||
errorlog = root.log
|
||||
|
||||
[server:main]
|
||||
use = egg:gunicorn#main
|
||||
host = 127.0.0.1
|
||||
port = 5000
|
||||
|
||||
[app:main]
|
||||
use = egg:pylonstest
|
||||
full_stack = true
|
||||
static_files = true
|
||||
|
||||
cache_dir = %(here)s/data
|
||||
beaker.session.key = pylonstest
|
||||
beaker.session.secret = somesecret
|
||||
|
||||
# If you'd like to fine-tune the individual locations of the cache data dirs
|
||||
# for the Cache data, or the Session saves, un-comment the desired settings
|
||||
# here:
|
||||
#beaker.cache.data_dir = %(here)s/data/cache
|
||||
#beaker.session.data_dir = %(here)s/data/sessions
|
||||
|
||||
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
|
||||
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
|
||||
# execute malicious code after an exception is raised.
|
||||
#set debug = false
|
||||
|
||||
# Begin logging configuration
|
||||
[loggers]
|
||||
keys= root, routes, pylonstest, gunicorn_error
|
||||
|
||||
[logger_root]
|
||||
level=INFO
|
||||
handlers=console
|
||||
|
||||
[logger_routes]
|
||||
level = INFO
|
||||
handlers =
|
||||
qualname = routes.middleware
|
||||
# "level = DEBUG" logs the route matched and routing variables.
|
||||
|
||||
[logger_pylonstest]
|
||||
level = DEBUG
|
||||
handlers =
|
||||
qualname = pylonstest
|
||||
|
||||
[logger_gunicorn_error]
|
||||
level=INFO
|
||||
handlers=error_file
|
||||
propagate=0
|
||||
qualname=gunicorn.error
|
||||
|
||||
|
||||
[handlers]
|
||||
keys = console, application, error_file
|
||||
|
||||
[handler_console]
|
||||
class = StreamHandler
|
||||
args = (sys.stderr,)
|
||||
level = NOTSET
|
||||
formatter = generic
|
||||
|
||||
[handler_application]
|
||||
class=FileHandler
|
||||
formatter=gunicorn_error
|
||||
args=('application.log',)
|
||||
|
||||
[handler_error_file]
|
||||
class=FileHandler
|
||||
formatter=gunicorn_error
|
||||
args=('error.log',)
|
||||
|
||||
|
||||
[formatters]
|
||||
keys = generic, gunicorn_error
|
||||
|
||||
[formatter_generic]
|
||||
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
|
||||
datefmt = %H:%M:%S
|
||||
|
||||
[formatter_gunicorn_error]
|
||||
format=%(asctime)s gunicorn_error: [%(process)d] [%(levelname)s] [%(name)s][%(threadName)s] - %(message)s
|
||||
datefmt=%Y-%m-%d %H:%M:%S
|
||||
class=logging.Formatter
|
||||
Loading…
x
Reference in New Issue
Block a user