Skip to content

Instantly share code, notes, and snippets.

@oremj
Created April 27, 2012 20:33
Show Gist options
  • Save oremj/2512834 to your computer and use it in GitHub Desktop.
Save oremj/2512834 to your computer and use it in GitHub Desktop.
Example gunicorn log config
[loggers]
keys=root,gunicorn_error
[logger_root]
level=WARN
handlers=syslog
[logger_gunicorn_error]
level=INFO
handlers=syslog
qualname=gunicorn.error
[handlers]
keys=syslog
[handler_syslog]
class=handlers.SysLogHandler
level=INFO
formatter=syslog
args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_LOCAL7)
[formatters]
keys=syslog
[formatter_syslog]
format=http_gunicorn_dev: %(asctime)s [%(process)d] [%(levelname)s] %(message)s
class=logging.Formatter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment