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 |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame] | 9 | handlers: |
| 10 | vio_handler: |
| 11 | level: "DEBUG" |
| 12 | class: "logging.handlers.RotatingFileHandler" |
| 13 | filename: "/var/log/onap/multicloud/vio/vio.log" |
| 14 | formatter: "mdcFormat" |
liangke | 2192901 | 2018-03-22 17:06:32 +0800 | [diff] [blame] | 15 | maxBytes: 52428800 |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame] | 16 | backupCount: 10 |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame] | 17 | formatters: |
| 18 | standard: |
liangke | 2192901 | 2018-03-22 17:06:32 +0800 | [diff] [blame] | 19 | format: "%(asctime)s|||||%(name)s||%(thread)||%(funcName)s||%(levelname)s||%(message)s" |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame] | 20 | mdcFormat: |
liangke | 2192901 | 2018-03-22 17:06:32 +0800 | [diff] [blame] | 21 | format: "%(asctime)s|||||%(name)s||%(thread)s||%(funcName)s||%(levelname)s||%(message)s||||%(mdc)s \t" |
| 22 | mdcfmt: "{requestID} {invocationID} {serviceName} {serviceIP}" |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame] | 23 | datefmt: "%Y-%m-%d %H:%M:%S" |
| 24 | (): onaplogging.mdcformatter.MDCFormatter |