Skip to content

Instantly share code, notes, and snippets.

@offby1
Created May 26, 2015 17:12
Show Gist options
  • Select an option

  • Save offby1/b3c17c895cbadca1ba70 to your computer and use it in GitHub Desktop.

Select an option

Save offby1/b3c17c895cbadca1ba70 to your computer and use it in GitHub Desktop.
[app:rackcontrol]
use = egg:RackControl
pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
pyramid.includes = pyramid_exclog
mako.directories = rackcontrol:templates
zmq_url = tcp://realtime-status.ine.com:5556
[pipeline:main]
pipeline = rackcontrol
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 80
# Begin logging configuration
[loggers]
keys = root, exc_logger
[logger_root]
level = NOTSET
handlers = unix_syslog
[logger_exc_logger]
level = ERROR
handlers = exc_handler
qualname = exc_logger
[handlers]
keys = unix_syslog, exc_handler
[handler_unix_syslog]
class = logging.handlers.SysLogHandler
args =('/dev/log', handlers.SysLogHandler.LOG_USER)
level = NOTSET
formatter = syslog
[handler_exc_handler]
class = logging.handlers.SysLogHandler
args = ('/dev/log', handlers.SysLogHandler.LOG_ERR)
level = ERROR
formatter = exc_formatter
[formatters]
keys = syslog, exc_formatter
[formatter_syslog]
format = rackcontrol[%(process)d]: %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
[formatter_exc_formatter]
format = %(asctime)s UTC %(message)s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment