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