Zsolt Haraszti | 8a77438 | 2016-10-24 18:25:54 -0700 | [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' |
Zsolt Haraszti | 8a77438 | 2016-10-24 18:25:54 -0700 | [diff] [blame] | 10 | |
| 11 | handlers: |
| 12 | console: |
| 13 | class : logging.StreamHandler |
| 14 | level: DEBUG |
| 15 | formatter: default |
| 16 | stream: ext://sys.stdout |
khenaidoo | 80a7f57 | 2017-04-05 14:17:16 -0500 | [diff] [blame] | 17 | localRotatingFile: |
| 18 | class: logging.handlers.RotatingFileHandler |
| 19 | filename: ofagent.log |
| 20 | formatter: default |
| 21 | maxBytes: 2097152 |
| 22 | backupCount: 10 |
| 23 | level: DEBUG |
Zsolt Haraszti | 8a77438 | 2016-10-24 18:25:54 -0700 | [diff] [blame] | 24 | null: |
| 25 | class: logging.NullHandler |
| 26 | |
| 27 | loggers: |
| 28 | amqp: |
| 29 | handlers: [null] |
| 30 | propagate: False |
| 31 | conf: |
Zsolt Haraszti | 8a77438 | 2016-10-24 18:25:54 -0700 | [diff] [blame] | 32 | propagate: False |
| 33 | '': # root logger |
khenaidoo | 50b286d | 2018-03-02 17:44:30 -0500 | [diff] [blame] | 34 | handlers: [console, localRotatingFile] |
Zsolt Haraszti | 8a77438 | 2016-10-24 18:25:54 -0700 | [diff] [blame] | 35 | level: INFO # this can be bumped up/down by -q and -v command line |
| 36 | # options |
| 37 | propagate: False |