Bin Yang | c86d6a7 | 2018-03-13 10:03:08 +0800 | [diff] [blame] | 1 | version: 1 |
| 2 | disable_existing_loggers: False |
| 3 | |
| 4 | loggers: |
| 5 | ocata: |
| 6 | handlers: [ocata_handler] |
| 7 | level: "DEBUG" |
| 8 | propagate: False |
| 9 | newton_base: |
| 10 | handlers: [ocata_handler] |
| 11 | level: "DEBUG" |
| 12 | propagate: False |
| 13 | common: |
| 14 | handlers: [ocata_handler] |
| 15 | level: "DEBUG" |
| 16 | propagate: False |
| 17 | |
| 18 | handlers: |
| 19 | ocata_handler: |
| 20 | level: "DEBUG" |
| 21 | class: "logging.handlers.RotatingFileHandler" |
| 22 | filename: "/var/log/onap/multicloud/openstack/ocata/ocata.log" |
| 23 | formatter: "mdcFormat" |
| 24 | maxBytes: 1024*1024*50 |
| 25 | backupCount: 10 |
| 26 | |
| 27 | formatters: |
| 28 | standard: |
| 29 | format: "%(asctime)s:[%(name)s]:[%(filename)s]-[%(lineno)d] [%(levelname)s]:%(message)s" |
| 30 | mdcFormat: |
| 31 | format: "%(asctime)s:[%(name)s]:[%(filename)s]-[%(lineno)d] [%(levelname)s]:[%(mdc)s]: %(message)s" |
| 32 | mdcfmt: "{requestID}" |
| 33 | datefmt: "%Y-%m-%d %H:%M:%S" |
| 34 | (): onaplogging.mdcformatter.MDCFormatter |