liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame] | 1 | version: 1 |
| 2 | disable_existing_loggers: False |
| 3 | |
| 4 | loggers: |
| 5 | vio: |
| 6 | handlers: [vio_handler] |
| 7 | level: "DEBUG" |
| 8 | propagate: False |
| 9 | |
| 10 | handlers: |
| 11 | vio_handler: |
| 12 | level: "DEBUG" |
| 13 | class: "logging.handlers.RotatingFileHandler" |
| 14 | filename: "/var/log/onap/multicloud/vio/vio.log" |
| 15 | formatter: "mdcFormat" |
| 16 | maxBytes: 1024*1024*50 |
| 17 | backupCount: 10 |
| 18 | |
| 19 | formatters: |
| 20 | standard: |
| 21 | format: "%(asctime)s:[%(name)s]:[%(filename)s]-[%(lineno)d] [%(levelname)s]:%(message)s" |
| 22 | mdcFormat: |
| 23 | format: "%(asctime)s:[%(name)s]:[%(filename)s]-[%(lineno)d] [%(levelname)s]:[%(mdc)s]: %(message)s" |
| 24 | mdcfmt: "{requestID}" |
| 25 | datefmt: "%Y-%m-%d %H:%M:%S" |
| 26 | (): onaplogging.mdcformatter.MDCFormatter |