khenaidoo | 379979e | 2017-08-24 11:51:00 -0400 | [diff] [blame] | 1 | logging: |
| 2 | version: 1 |
| 3 | |
| 4 | formatters: |
| 5 | brief: |
| 6 | format: '%(message)s' |
| 7 | default: |
| 8 | format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(module)s.%(funcName)s %(message)s' |
| 9 | datefmt: '%Y%m%dT%H%M%S' |
| 10 | fluent_fmt: |
| 11 | '()': fluent.handler.FluentRecordFormatter |
| 12 | format: |
| 13 | level: '%(levelname)s' |
| 14 | hostname: '%(hostname)s' |
| 15 | where: '%(module)s.%(funcName)s' |
khenaidoo | 4f6bf1f | 2017-08-28 12:25:22 -0400 | [diff] [blame] | 16 | fluent_default: |
| 17 | format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s' |
| 18 | datefmt: '%Y%m%dT%H%M%S' |
khenaidoo | 379979e | 2017-08-24 11:51:00 -0400 | [diff] [blame] | 19 | |
| 20 | handlers: |
| 21 | fluent: |
| 22 | class: fluent.handler.FluentHandler |
| 23 | host: localhost |
| 24 | port: 24224 |
| 25 | tag: ofagent.logging |
khenaidoo | 4f6bf1f | 2017-08-28 12:25:22 -0400 | [diff] [blame] | 26 | # Since fluent formatter output an exception with grpc data, use |
| 27 | # a basic formatter for now. |
| 28 | # formatter: fluent_fmt |
| 29 | formatter: fluent_default |
khenaidoo | 379979e | 2017-08-24 11:51:00 -0400 | [diff] [blame] | 30 | level: INFO |
| 31 | null: |
| 32 | class: logging.NullHandler |
| 33 | |
| 34 | loggers: |
| 35 | amqp: |
| 36 | handlers: [null] |
| 37 | propagate: False |
| 38 | conf: |
| 39 | handlers: [null] |
| 40 | propagate: False |
| 41 | '': # root logger |
| 42 | handlers: [fluent] |
| 43 | level: INFO # this can be bumped up/down by -q and -v command line |
| 44 | # options |
| 45 | propagate: False |