Created
January 4, 2014 18:28
-
-
Save jwal/8258682 to your computer and use it in GitHub Desktop.
Example logging configuration for Python and Circus using YAML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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