Khen Nursimulu | 3869d8d | 2016-11-28 20:44:28 -0500 | [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' |
| 16 | |
| 17 | handlers: |
| 18 | console: |
| 19 | class : logging.StreamHandler |
| 20 | level: DEBUG |
| 21 | formatter: default |
| 22 | stream: ext://sys.stdout |
| 23 | fluent: |
| 24 | class: fluent.handler.FluentHandler |
| 25 | host: localhost |
| 26 | port: 24224 |
khenaidoo | 379979e | 2017-08-24 11:51:00 -0400 | [diff] [blame] | 27 | tag: netconf.logging |
Khen Nursimulu | 3869d8d | 2016-11-28 20:44:28 -0500 | [diff] [blame] | 28 | formatter: fluent_fmt |
| 29 | level: DEBUG |
khenaidoo | 80a7f57 | 2017-04-05 14:17:16 -0500 | [diff] [blame] | 30 | localRotatingFile: |
| 31 | class: logging.handlers.RotatingFileHandler |
| 32 | filename: netconf.log |
| 33 | formatter: default |
| 34 | maxBytes: 2097152 |
| 35 | backupCount: 10 |
| 36 | level: DEBUG |
Khen Nursimulu | 3869d8d | 2016-11-28 20:44:28 -0500 | [diff] [blame] | 37 | null: |
| 38 | class: logging.NullHandler |
| 39 | |
| 40 | loggers: |
| 41 | amqp: |
| 42 | handlers: [null] |
| 43 | propagate: False |
| 44 | conf: |
| 45 | handlers: [null] |
| 46 | propagate: False |
| 47 | '': # root logger |
khenaidoo | 80a7f57 | 2017-04-05 14:17:16 -0500 | [diff] [blame] | 48 | handlers: [console, fluent, localRotatingFile] |
Khen Nursimulu | 3869d8d | 2016-11-28 20:44:28 -0500 | [diff] [blame] | 49 | level: INFO # this can be bumped up/down by -q and -v command line |
| 50 | # options |
| 51 | propagate: False |