Plummer, Brittany | 2ede5f0 | 2019-09-10 11:29:42 -0400 | [diff] [blame] | 1 | <!-- ============LICENSE_START======================================================= |
| 2 | ECOMP MSO ================================================================================ |
| 3 | Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. ================================================================================ |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 5 | use this file except in compliance with the License. You may obtain a copy |
| 6 | of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required |
| 7 | by applicable law or agreed to in writing, software distributed under the |
| 8 | License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
| 9 | OF ANY KIND, either express or implied. See the License for the specific |
| 10 | language governing permissions and limitations under the License. ============LICENSE_END========================================================= --> |
| 11 | |
| 12 | <configuration scan="false" debug="false"> |
| 13 | <contextListener class="org.onap.so.logger.LoggerStartupListener" /> |
| 14 | |
| 15 | <property name="queueSize" value="256" /> |
| 16 | <property name="maxFileSize" value="200MB" /> |
| 17 | <property name="maxHistory" value="30" /> |
| 18 | <property name="totalSizeCap" value="10GB" /> |
| 19 | |
| 20 | <!-- log file names --> |
| 21 | <property name="errorLogName" value="error" /> |
| 22 | <property name="metricsLogName" value="metrics" /> |
| 23 | <property name="auditLogName" value="audit" /> |
| 24 | <property name="debugLogName" value="debug" /> |
| 25 | <property name="cadiLogName" value="cadi" /> |
| 26 | |
| 27 | <property name="currentTimeStamp" value="%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX",UTC}"/> |
| 28 | |
| 29 | <property name="errorPattern" |
Plummer, Brittany | 124f505 | 2020-02-19 19:46:14 -0500 | [diff] [blame^] | 30 | value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%thread|%X{ServiceName:-Unknown}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%.-5level|%X{ErrorCode:-900}|%X{ErrorDesc:-UnknownError}|%msg%nopex%n" /> |
Plummer, Brittany | 2ede5f0 | 2019-09-10 11:29:42 -0400 | [diff] [blame] | 31 | |
| 32 | <property name="debugPattern" |
| 33 | value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%logger{50} - %msg%n" /> |
| 34 | |
| 35 | <property name="auditPattern" |
| 36 | value="%X{EntryTimestamp}|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}|%X{RequestID}|%X{ServiceInstanceId}|%thread||%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}||||%marker|%mdc|||%msg%n" /> |
| 37 | |
| 38 | <property name="metricPattern" |
| 39 | value="%X{InvokeTimestamp}|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}|%X{RequestID}|%X{ServiceInstanceId}|%thread||%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}||||%X{TargetVirtualEntity}|%marker|%mdc|||%msg%n" /> |
| 40 | |
| 41 | <property name="defaultPattern" |
| 42 | value="%nopexception%logger |
| 43 | \t%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC} |
| 44 | \t%level |
| 45 | \t%replace(%replace(%message){'\t','\\\\t'}){'\n','\\\\n'} |
| 46 | \t%replace(%replace(%mdc){'\t','\\\\t'}){'\n','\\\\n'} |
| 47 | \t%replace(%replace(%rootException){'\t','\\\\t'}){'\n','\\\\n'} |
| 48 | \t%replace(%replace(%marker){'\t','\\\\t'}){'\n','\\\\n'} |
| 49 | \t%thread |
| 50 | \t%n" /> |
| 51 | |
| 52 | <appender name="Audit" |
| 53 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 54 | <filter class="ch.qos.logback.core.filter.EvaluatorFilter"> |
| 55 | <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator"> |
| 56 | <marker>EXIT</marker> |
| 57 | </evaluator> |
| 58 | <onMismatch>DENY</onMismatch> |
| 59 | <onMatch>ACCEPT</onMatch> |
| 60 | </filter> |
| 61 | <file>${logs_dir:-.}/${auditLogName}.log</file> |
| 62 | <rollingPolicy |
| 63 | class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 64 | <fileNamePattern>${logs_dir:-.}/${auditLogName}.%d{yyyy-MM-dd}.%i.log.zip |
| 65 | </fileNamePattern> |
| 66 | <maxFileSize>${maxFileSize}</maxFileSize> |
| 67 | <maxHistory>${maxHistory}</maxHistory> |
| 68 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 69 | </rollingPolicy> |
| 70 | <encoder> |
| 71 | <pattern>${auditPattern}</pattern> |
| 72 | </encoder> |
| 73 | </appender> |
| 74 | |
| 75 | <appender name="asyncAudit" class="ch.qos.logback.classic.AsyncAppender"> |
| 76 | <queueSize>256</queueSize> |
| 77 | <appender-ref ref="Audit" /> |
| 78 | </appender> |
| 79 | |
| 80 | <appender name="Metric" |
| 81 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 82 | <filter class="ch.qos.logback.core.filter.EvaluatorFilter"> |
| 83 | <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator"> |
| 84 | <marker>INVOKE-RETURN</marker> |
| 85 | </evaluator> |
| 86 | <onMismatch>DENY</onMismatch> |
| 87 | <onMatch>ACCEPT</onMatch> |
| 88 | </filter> |
| 89 | <file>${logs_dir:-.}/${metricsLogName}.log</file> |
| 90 | <rollingPolicy |
| 91 | class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 92 | <fileNamePattern>${logs_dir:-.}/${metricsLogName}.%d{yyyy-MM-dd}.%i.log.zip |
| 93 | </fileNamePattern> |
| 94 | <maxFileSize>${maxFileSize}</maxFileSize> |
| 95 | <maxHistory>${maxHistory}</maxHistory> |
| 96 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 97 | </rollingPolicy> |
| 98 | <encoder> |
| 99 | <pattern>${metricPattern}</pattern> |
| 100 | </encoder> |
| 101 | </appender> |
| 102 | |
| 103 | |
| 104 | <appender name="asyncMetric" class="ch.qos.logback.classic.AsyncAppender"> |
| 105 | <queueSize>256</queueSize> |
| 106 | <appender-ref ref="Metric" /> |
| 107 | </appender> |
| 108 | |
| 109 | <appender name="Error" |
| 110 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 111 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 112 | <level>ERROR</level> |
| 113 | <onMatch>ACCEPT</onMatch> |
| 114 | <onMismatch>DENY</onMismatch> |
| 115 | </filter> |
| 116 | <file>${logs_dir:-.}/${errorLogName}.log</file> |
| 117 | <rollingPolicy |
| 118 | class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 119 | <fileNamePattern>${logs_dir:-.}/${errorLogName}.%d{yyyy-MM-dd}.%i.log.zip |
| 120 | </fileNamePattern> |
| 121 | <maxFileSize>${maxFileSize}</maxFileSize> |
| 122 | <maxHistory>${maxHistory}</maxHistory> |
| 123 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 124 | </rollingPolicy> |
| 125 | <encoder> |
| 126 | <pattern>${errorPattern}</pattern> |
| 127 | </encoder> |
| 128 | </appender> |
| 129 | |
| 130 | <appender name="asyncError" class="ch.qos.logback.classic.AsyncAppender"> |
| 131 | <queueSize>256</queueSize> |
| 132 | <appender-ref ref="Error" /> |
| 133 | </appender> |
| 134 | |
| 135 | <appender name="Debug" |
| 136 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 137 | <filter class="ch.qos.logback.core.filter.EvaluatorFilter"> |
| 138 | <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator"> |
| 139 | <marker>INVOKE</marker> |
| 140 | <marker>INVOKE-RETURN</marker> |
| 141 | <marker>ENTRY</marker> |
| 142 | <marker>EXIT</marker> |
| 143 | </evaluator> |
| 144 | <onMismatch>ACCEPT</onMismatch> |
| 145 | <onMatch>DENY</onMatch> |
| 146 | </filter> |
| 147 | <file>${logs_dir:-.}/${debugLogName}.log</file> |
| 148 | <rollingPolicy |
| 149 | class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 150 | <fileNamePattern>${logs_dir:-.}/${debugLogName}.%d{yyyy-MM-dd}.%i.log.zip |
| 151 | </fileNamePattern> |
| 152 | <maxFileSize>${maxFileSize}</maxFileSize> |
| 153 | <maxHistory>${maxHistory}</maxHistory> |
| 154 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 155 | </rollingPolicy> |
| 156 | <encoder> |
| 157 | <pattern>${debugPattern}</pattern> |
| 158 | </encoder> |
| 159 | </appender> |
| 160 | |
| 161 | <appender name="asyncDebug" class="ch.qos.logback.classic.AsyncAppender"> |
| 162 | <queueSize>256</queueSize> |
| 163 | <appender-ref ref="Debug" /> |
| 164 | <includeCallerData>true</includeCallerData> |
| 165 | </appender> |
| 166 | |
| 167 | <appender name="Cadi" |
| 168 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 169 | <file>${logs_dir:-.}/${cadiLogName}.log</file> |
| 170 | <rollingPolicy |
| 171 | class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 172 | <fileNamePattern>${logs_dir:-.}/${cadiLogName}.%d{yyyy-MM-dd}.%i.log.zip |
| 173 | </fileNamePattern> |
| 174 | <maxFileSize>${maxFileSize}</maxFileSize> |
| 175 | <maxHistory>${maxHistory}</maxHistory> |
| 176 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 177 | </rollingPolicy> |
| 178 | <encoder> |
| 179 | <pattern>${debugPattern}</pattern> |
| 180 | </encoder> |
| 181 | </appender> |
| 182 | |
| 183 | <appender name="asyncCadi" class="ch.qos.logback.classic.AsyncAppender"> |
| 184 | <queueSize>256</queueSize> |
| 185 | <appender-ref ref="Cadi" /> |
| 186 | <includeCallerData>true</includeCallerData> |
| 187 | </appender> |
| 188 | |
| 189 | <!-- Spring related loggers --> |
| 190 | <logger name="org.springframework" level="WARN" /> |
| 191 | <logger |
| 192 | name="org.springframework.security.authentication.dao.DaoAuthenticationProvider" |
| 193 | level="DEBUG" /> |
| 194 | |
| 195 | <!-- Camunda related loggers --> |
| 196 | <logger name="org.camunda.bpm.engine.jobexecutor.level" level="DEBUG" /> |
| 197 | <logger |
| 198 | name="org.camunda.bpm.engine.impl.persistence.entity.JobEntity.level" |
| 199 | level="DEBUG" /> |
| 200 | |
| 201 | <logger name="org.flywaydb" level="DEBUG"/> |
| 202 | <logger name="org.apache.wire" level="DEBUG" /> |
| 203 | <logger name="org.onap" level="DEBUG" /> |
| 204 | <logger name="org.apache.cxf.interceptor" level="DEBUG" /> |
| 205 | <logger name="com.woorea.openstack.connector" level="DEBUG" /> |
| 206 | |
| 207 | <!-- AAF Logs go here--> |
| 208 | <logger name="org.apache.catalina.core.ContainerBase" level="INFO" additivity="false"> |
| 209 | <appender-ref ref="asyncCadi" /> |
| 210 | </logger> |
| 211 | |
| 212 | <logger name="org.reflections.Reflections" level="ERROR" additivity="false"> |
| 213 | <appender-ref ref="asyncCadi" /> |
| 214 | </logger> |
| 215 | |
| 216 | <logger name="AUDIT" level="INFO" additivity="false"> |
| 217 | <appender-ref ref="asyncAudit" /> |
| 218 | </logger> |
| 219 | |
| 220 | <logger name="METRIC" level="INFO" additivity="false"> |
| 221 | <appender-ref ref="asyncMetric" /> |
| 222 | </logger> |
| 223 | |
| 224 | <root level="INFO"> |
| 225 | <appender-ref ref="asyncDebug" /> |
| 226 | <appender-ref ref="asyncError" /> |
| 227 | <appender-ref ref="asyncAudit" /> |
| 228 | <appender-ref ref="asyncMetric" /> |
| 229 | </root> |
| 230 | |
| 231 | </configuration> |