Dan Timoney | b80471e | 2020-03-24 14:30:24 -0400 | [diff] [blame] | 1 | #- |
| 2 | # ============LICENSE_START======================================================= |
| 3 | # ONAP - CCSDK |
| 4 | # ================================================================================ |
| 5 | # Copyright (C) 2020 AT&T Intellectual Property. All rights reserved. |
| 6 | # ================================================================================ |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | # ============LICENSE_END========================================================= |
| 19 | # |
| 20 | |
| 21 | property.logDir = ${sys:LOG_PATH:-./target} |
| 22 | |
| 23 | property.pattern = %d{ISO8601} | %-5p | %-16t | %-32c{1} | %X{currentGraph} - %X{nodeId} | %m%n |
| 24 | |
| 25 | #default mdc values |
| 26 | property.ServiceName = INTERNAL |
| 27 | property.ErrorCode = 900 |
| 28 | property.ErrorDesc = UnknownError |
| 29 | |
| 30 | rootLogger.level = INFO |
| 31 | rootLogger.appenderRef.AppFile.ref = AppFile |
| 32 | rootLogger.appenderRef.Console.ref = Console |
| 33 | rootLogger.appenderRef.DebugFile.ref = DebugFile |
| 34 | rootLogger.appenderRef.ErrorFile.ref = ErrorFile |
| 35 | rootLogger.appenderRef.Console.filter.threshold.type = ThresholdFilter |
| 36 | rootLogger.appenderRef.Console.filter.threshold.level = DEBUG |
| 37 | |
| 38 | appender.console.type = Console |
| 39 | appender.console.name = Console |
| 40 | appender.console.layout.type = PatternLayout |
| 41 | appender.console.layout.pattern = ${pattern} |
| 42 | |
| 43 | appender.app.type = RollingRandomAccessFile |
| 44 | appender.app.name = AppFile |
| 45 | appender.app.fileName = ${logDir}/app.log |
| 46 | appender.app.filePattern = ${logDir}/app.log.%i |
| 47 | appender.app.immediateFlush = true |
| 48 | appender.app.append = true |
| 49 | appender.app.layout.type = PatternLayout |
| 50 | appender.app.layout.pattern = ${pattern} |
| 51 | appender.app.policies.type = Policies |
| 52 | appender.app.policies.size.type = SizeBasedTriggeringPolicy |
| 53 | appender.app.policies.size.size = 10MB |
| 54 | appender.app.strategy.type = DefaultRolloverStrategy |
| 55 | appender.app.strategy.max = 100 |
| 56 | appender.app.strategy.fileIndex = min |
| 57 | |
| 58 | appender.debug.type = RollingRandomAccessFile |
| 59 | appender.debug.name = DebugFile |
| 60 | appender.debug.fileName = ${logDir}/debug.log |
| 61 | appender.debug.filePattern = ${logDir}/debug.log.%i |
| 62 | appender.debug.immediateFlush = true |
| 63 | appender.debug.append = true |
| 64 | appender.debug.layout.type = PatternLayout |
| 65 | appender.debug.layout.pattern = %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%-16.16t|%-5.5p|%-32.32c{1}|%X{currentGraph} - %X{nodeId}|%m%n |
| 66 | appender.debug.policies.type = Policies |
| 67 | appender.debug.policies.size.type = SizeBasedTriggeringPolicy |
| 68 | appender.debug.policies.size.size = 10MB |
| 69 | appender.debug.strategy.type = DefaultRolloverStrategy |
| 70 | appender.debug.strategy.max = 200 |
| 71 | appender.debug.strategy.fileIndex = min |
| 72 | |
| 73 | appender.error.type = RollingRandomAccessFile |
| 74 | appender.error.name = ErrorFile |
| 75 | appender.error.fileName = ${logDir}/error.log |
| 76 | appender.error.filePattern = ${logDir}/error.log.%i |
| 77 | appender.error.immediateFlush = true |
| 78 | appender.error.append = true |
| 79 | appender.error.layout.type = PatternLayout |
| 80 | appender.error.layout.pattern = %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%-16.16t|$${ctx:ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%p|$${ctx:ErrorCode}|$${ctx:ErrorDesc}|%m%n |
| 81 | |
| 82 | appender.error.policies.type = Policies |
| 83 | appender.error.policies.size.type = SizeBasedTriggeringPolicy |
| 84 | appender.error.policies.size.size = 10MB |
| 85 | appender.error.strategy.type = DefaultRolloverStrategy |
| 86 | appender.error.strategy.max = 100 |
| 87 | appender.error.strategy.fileIndex = min |
| 88 | appender.error.filter.threshold.type = ThresholdFilter |
| 89 | appender.error.filter.threshold.level = WARN |
| 90 | |
| 91 | appender.metric.type = RollingRandomAccessFile |
| 92 | appender.metric.name = MetricFile |
| 93 | appender.metric.fileName = ${logDir}/metric.log |
| 94 | appender.metric.filePattern = ${logDir}/metric.log.%i |
| 95 | appender.metric.immediateFlush = true |
| 96 | appender.metric.append = true |
| 97 | appender.metric.layout.type = PatternLayout |
| 98 | appender.metric.layout.pattern=%X{InvokeTimestamp}|%X{LogTimestamp}|%X{RequestID}|%X{ServiceInstanceID}|%-16.16t|%X{ServerFQDN}|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceID}|%p|%X{Severity}|192.168.23.111|%X{ElapsedTime}|${hostName}|%X{ClientIPAddress}|%C{1}|||%X{TargetElement}|%markerSimpleName|%X|%X{currentGraph} - %X{nodeId}||%m%n |
| 99 | appender.metric.policies.type = Policies |
| 100 | appender.metric.policies.size.type = SizeBasedTriggeringPolicy |
| 101 | appender.metric.policies.size.size = 10MB |
| 102 | appender.metric.strategy.type = DefaultRolloverStrategy |
| 103 | appender.metric.strategy.max = 100 |
| 104 | appender.metric.strategy.fileIndex = min |
| 105 | |
| 106 | appender.audit.type = RollingRandomAccessFile |
| 107 | appender.audit.name = AuditFile |
| 108 | appender.audit.fileName = ${logDir}/audit.log |
| 109 | appender.audit.filePattern = ${logDir}/audit.log.%i |
| 110 | appender.audit.immediateFlush = true |
| 111 | appender.audit.append = true |
| 112 | appender.audit.layout.type = PatternLayout |
| 113 | appender.audit.layout.pattern=%X{EntryTimestamp}|%X{LogTimestamp}|%X{RequestID}|%X{ServiceInstanceID}|%-16.16t|%X{ServerFQDN}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceID}|INFO|%X{Severity}|192.168.23.111|%X{ElapsedTime}|${hostName}|%X{ClientIPAddress}|%C{1}|%X{AUDIT-Unused}|%X{AUDIT-ProcessKey}|%markerSimpleName|%X|||%m%n |
| 114 | appender.audit.policies.type = Policies |
| 115 | appender.audit.policies.size.type = SizeBasedTriggeringPolicy |
| 116 | appender.audit.policies.size.size = 10MB |
| 117 | appender.audit.strategy.type = DefaultRolloverStrategy |
| 118 | appender.audit.strategy.max = 200 |
| 119 | appender.audit.strategy.fileIndex = min |
| 120 | |
| 121 | appender.rr.name = RequestResponseFile |
| 122 | appender.rr.type = RollingRandomAccessFile |
| 123 | appender.rr.fileName = ${logDir}/request-response.log |
| 124 | appender.rr.filePattern = ${logDir}/request-response.log.%i |
| 125 | appender.rr.immediateFlush = true |
| 126 | appender.rr.append = true |
| 127 | appender.rr.layout.type = PatternLayout |
| 128 | appender.rr.layout.pattern = %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%X{PartnerName}|%m%n |
| 129 | appender.rr.policies.type = Policies |
| 130 | appender.rr.policies.size.type = SizeBasedTriggeringPolicy |
| 131 | appender.rr.policies.size.size = 10MB |
| 132 | appender.rr.strategy.type = DefaultRolloverStrategy |
| 133 | appender.rr.strategy.max = 100 |
| 134 | appender.rr.strategy.fileIndex = min |
| 135 | |
| 136 | logger.metric.name = org.onap.ccsdk.sli.core.filters.metric |
| 137 | logger.metric.level = INFO |
| 138 | logger.metric.additivity = false |
| 139 | logger.metric.appenderRef.MetricFile.ref = MetricFile |
| 140 | |
| 141 | logger.metric2.name = org.onap.logging.filter.base.AbstractMetricLogFilter |
| 142 | logger.metric2.level = INFO |
| 143 | logger.metric2.additivity = false |
| 144 | logger.metric2.appenderRef.MetricFile.ref = MetricFile |
| 145 | |
| 146 | logger.audit.name = org.onap.logging.filter.base.AbstractAuditLogFilter |
| 147 | logger.audit.level = INFO |
| 148 | logger.audit.additivity = false |
| 149 | logger.audit.appenderRef.AuditFile.ref = AuditFile |
| 150 | |
| 151 | logger.rr.name = org.onap.logging.filter.base.PayloadLoggingServletFilter |
| 152 | logger.rr.level = INFO |
| 153 | logger.rr.additivity = false |
| 154 | logger.rr.appenderRef.RequestResponseFile.ref = RequestResponseFile |
| 155 | |
| 156 | logger.ccsdk.name = org.onap.ccsdk |
| 157 | logger.ccsdk.level = DEBUG |
| 158 | |
| 159 | logger.onaplogging.name = org.onap.logging |
| 160 | logger.onaplogging.level = DEBUG |