koder aka kdanilov | 962ee5f | 2016-12-19 02:40:08 +0200 | [diff] [blame] | 1 | formatters: |
| 2 | default: |
| 3 | format: '%(asctime)s - %(levelname)8s - %(name)-15s - %(message)s' |
| 4 | datefmt: '"%H:%M:%S"' |
| 5 | custom: |
| 6 | (): my.package.customFormatterFactory |
| 7 | bar: baz |
| 8 | spam: 99.9 |
| 9 | answer: 42 |
| 10 | |
| 11 | handlers: |
| 12 | email: |
| 13 | class: logging.handlers.SMTPHandler |
| 14 | mailhost: localhost |
| 15 | fromaddr: my_app@domain.tld |
| 16 | toaddrs: |
| 17 | - support_team@domain.tld |
| 18 | - dev_team@domain.tld |
| 19 | subject: Houston, we have a problem. |
| 20 | |
| 21 | loggers: |
| 22 | foo.bar.baz: |
| 23 | # other configuration for logger 'foo.bar.baz' |
| 24 | handlers: [h1, h2] |