krishnaa96 | 9940613 | 2020-09-24 20:39:49 +0530 | [diff] [blame] | 1 | version: 1 |
| 2 | disable_existing_loggers: True |
| 3 | |
| 4 | loggers: |
| 5 | error: |
| 6 | handlers: [error_handler, console_handler] |
| 7 | level: "WARN" |
| 8 | propagate: True |
| 9 | debug: |
| 10 | handlers: [debug_handler, console_handler] |
| 11 | level: "DEBUG" |
| 12 | propagate: True |
| 13 | metrics: |
| 14 | handlers: [metrics_handler, console_handler] |
| 15 | level: "INFO" |
| 16 | propagate: True |
| 17 | audit: |
| 18 | handlers: [audit_handler, console_handler] |
| 19 | level: "INFO" |
| 20 | propagate: True |
| 21 | handlers: |
| 22 | debug_handler: |
| 23 | level: "DEBUG" |
| 24 | class: "logging.handlers.TimedRotatingFileHandler" |
| 25 | filename: "logs/debug.log" |
| 26 | formatter: "debugFormat" |
| 27 | when: midnight |
| 28 | interval: 1 |
| 29 | utc: True |
| 30 | delay: False |
| 31 | backupCount: 10 |
| 32 | error_handler: |
| 33 | level: "WARN" |
| 34 | class: "logging.handlers.TimedRotatingFileHandler" |
| 35 | filename: "logs/error.log" |
| 36 | formatter: "errorFormat" |
| 37 | when: midnight |
| 38 | interval: 1 |
| 39 | utc: True |
| 40 | delay: False |
| 41 | backupCount: 10 |
| 42 | metrics_handler: |
| 43 | level: "INFO" |
| 44 | class: "logging.handlers.TimedRotatingFileHandler" |
| 45 | filename: "logs/metrics.log" |
| 46 | formatter: "metricsFormat" |
| 47 | when: midnight |
| 48 | interval: 1 |
| 49 | utc: True |
| 50 | delay: False |
| 51 | backupCount: 10 |
| 52 | audit_handler: |
| 53 | level: "INFO" |
| 54 | class: "logging.handlers.TimedRotatingFileHandler" |
| 55 | filename: "logs/audit.log" |
| 56 | formatter: "auditFormat" |
| 57 | when: midnight |
| 58 | interval: 1 |
| 59 | utc: True |
| 60 | delay: False |
| 61 | backupCount: 10 |
| 62 | console_handler: |
| 63 | level: "DEBUG" |
| 64 | class: "logging.StreamHandler" |
| 65 | formatter: "metricsFormat" |
| 66 | |
| 67 | formatters: |
| 68 | standard: |
| 69 | format: "%(asctime)s|||||%(name)s||%(thread)||%(funcName)s||%(levelname)s||%(message)s" |
| 70 | debugFormat: |
| 71 | format: "%(mdc)s" |
| 72 | datefmt: "%Y-%m-%dT%H:%M:%S" |
| 73 | mdcfmt: "%(asctime)s.%(msecs)03d+00:00|{requestID}|%(threadName)s|{server}|%(levelname)s|%(message)s" |
| 74 | (): osdf.logging.oof_mdc_formatter.OOFMDCFormatter |
| 75 | errorFormat: |
| 76 | format: "%(mdc)s" |
| 77 | datefmt: "%Y-%m-%dT%H:%M:%S" |
| 78 | mdcfmt: "%(asctime)s.%(msecs)03d+00:00|{requestID}|%(threadName)s|{serviceName}|{partnerName}\ |
| 79 | |{targetEntity}|{targetServiceName}|%(levelname)s|{errorCode}|{errorDescription}|%(message)s" |
| 80 | (): osdf.logging.oof_mdc_formatter.OOFMDCFormatter |
| 81 | auditFormat: |
| 82 | format: "%(mdc)s" |
| 83 | datefmt: "%Y-%m-%dT%H:%M:%S" |
| 84 | mdcfmt: "{entryTimestamp}+00:00|%(asctime)s.%(msecs)03d+00:00|{requestID}|{serviceInstanceID}\ |
| 85 | |%(threadName)s|{server}|{serviceName}|{partnerName}|{statusCode}|{responseCode}|{responseDescription}\ |
| 86 | |{instanceUUID}|%(levelname)s|{severity}|{serverIPAddress}|{timer}|{server}|{IPAddress}||{unused}\ |
| 87 | |{processKey}|{customField1}|{customField2}|{customField3}|{customField4}|%(message)s" |
| 88 | (): osdf.logging.oof_mdc_formatter.OOFMDCFormatter |
| 89 | metricsFormat: |
| 90 | format: "%(mdc)s" |
| 91 | datefmt: "%Y-%m-%dT%H:%M:%S" |
| 92 | mdcfmt: "{entryTimestamp}+00:00|%(asctime)s.%(msecs)03d+00:00|{requestID}|{serviceInstanceID}\ |
| 93 | |%(threadName)s|{server}|{serviceName}|{partnerName}|{targetEntity}|{targetServiceName}|{statusCode}|{responseCode}|{responseDescription}\ |
| 94 | |{instanceUUID}|%(levelname)s|{severity}|{serverIPAddress}|{timer}|{server}|{IPAddress}||{unused}\ |
| 95 | |{processKey}|{TargetVirtualEntity}|{customField1}|{customField2}|{customField3}|{customField4}|%(message)s" |
| 96 | (): osdf.logging.oof_mdc_formatter.OOFMDCFormatter |
| 97 | mdcFormat: |
| 98 | format: "%(asctime)s.%(msecs)03d+00:00|||||%(name)s||%(thread)s||%(funcName)s||%(levelname)s||%(message)s||||%(mdc)s" |
| 99 | mdcfmt: "{requestID} {invocationID} {serviceName} {serverIPAddress}" |
| 100 | (): osdf.logging.oof_mdc_formatter.OOFMDCFormatter |
| 101 | |