Skip to content

Instantly share code, notes, and snippets.

@jwal
Created January 4, 2014 18:28
Show Gist options
  • Save jwal/8258682 to your computer and use it in GitHub Desktop.
Save jwal/8258682 to your computer and use it in GitHub Desktop.
Example logging configuration for Python and Circus using YAML
version: 1
formatters:
simple:
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
handlers:
console:
class: logging.StreamHandler
level: DEBUG
formatter: simple
stream: ext://sys.stdout
syslog:
class: logging.handlers.SysLogHandler
address: "/dev/log"
level: DEBUG
formatter: simple
loggers:
simpleExample:
level: DEBUG
handlers: [console]
propagate: no
circus:
level: DEBUG
handlers: [console,syslog]
propagate: no
root:
level: DEBUG
handlers: [console]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment