Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 1 | {{/*<!-- |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 2 | ============LICENSE_START======================================================= |
| 3 | org.onap.aai |
| 4 | ================================================================================ |
| 5 | Copyright © 2017 AT&T Intellectual Property. All rights reserved. |
| 6 | Modifications Copyright © 2018 Amdocs, Bell Canada |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 7 | Modifications Copyright © 2020 Orange |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 8 | ================================================================================ |
| 9 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 | you may not use this file except in compliance with the License. |
| 11 | You may obtain a copy of the License at |
| 12 | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 13 | http://www.apache.org/licenses/LICENSE-2.0 |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 14 | |
| 15 | Unless required by applicable law or agreed to in writing, software |
| 16 | distributed under the License is distributed on an "AS IS" BASIS, |
| 17 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | See the License for the specific language governing permissions and |
| 19 | limitations under the License. |
| 20 | ============LICENSE_END========================================================= |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 21 | --> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 22 | */}} |
| 23 | <configuration scan="true" scanPeriod="60 seconds" debug="false"> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 24 | <statusListener class="ch.qos.logback.core.status.NopStatusListener" /> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 25 | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 26 | <property resource="application.properties" /> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 27 | |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 28 | <property name="maxHistory" value='{{.Values.logback.maxHistory}}' /> |
| 29 | <property name="totalSizeCap" value='{{.Values.logback.totalSizeCap}}' /> |
| 30 | <property name="queueSize" value='{{.Values.logback.queueSize}}'/> |
| 31 | <property name="logToFileEnabled" value='{{.Values.logback.logToFileEnabled}}'/> |
| 32 | |
| 33 | <property name="namespace" value="aai-traversal" /> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 34 | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 35 | <property name="AJSC_HOME" value="${AJSC_HOME:-.}" /> |
| 36 | <jmxConfigurator /> |
| 37 | <property name="logDirectory" value="${AJSC_HOME}/logs" /> |
| 38 | <!-- Old patterns |
guillaume.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 39 | <property name="eelfLogPattern" value="%ecompStartTime|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%ecompServiceName|%X{partnerName}|%ecompStatusCode|%X{responseCode}|%replace(%replace(%X{responseDescription}){'\\|', '!'}){'\r|\n', '^'}|%X{instanceUUID}|%level|%X{severity}|%X{serverIpAddress}|%ecompElapsedTime|%X{server}|%X{clientIpAddress}|%eelfClassOfCaller|%X{unused}|%X{processKey}|%X{customField1}|%X{customField2}|%X{customField3}|%X{customField4}|co=%X{component}:%replace(%replace(%m){'\\|', '!'}){'\r|\n', '^'}%n"/> |
| 40 | <property name="eelfAuditLogPattern" value="%ecompStartTime|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%ecompServiceName|%X{partnerName}|%ecompStatusCode|%X{responseCode}|%replace(%replace(%X{responseDescription}){'\\|', '!'}){'\r|\n|\r\n', '^'}|%X{instanceUUID}|%level|%X{severity}|%X{serverIpAddress}|%ecompElapsedTime|%X{server}|%X{clientIpAddress}|%eelfClassOfCaller|%X{unused}|%X{processKey}|%X{customField1}|%X{customField2}|%X{customField3}|%X{customField4}|co=%X{component}:%replace(%replace(%m){'\\|', '!'}){'\r|\n', '^'}%n"/> |
| 41 | <property name="eelfMetricLogPattern" value="%ecompStartTime|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%ecompServiceName|%X{partnerName}|%X{targetEntity}|%X{targetServiceName}|%ecompStatusCode|%X{responseCode}|%replace(%replace(%X{responseDescription}){'\\|', '!'}){'\r|\n', '^'}|%X{instanceUUID}|%level|%X{severity}|%X{serverIpAddress}|%ecompElapsedTime|%X{server}|%X{clientIpAddress}|%eelfClassOfCaller|%X{unused}|%X{processKey}|%X{targetVirtualEntity}|%X{customField1}|%X{customField2}|%X{customField3}|%X{customField4}|co=%X{component}:%replace(%replace(%m){'\\|', '!'}){'\r|\n', '^'}%n"/> |
| 42 | <property name="eelfErrorLogPattern" value="%ecompStartTime|%X{requestId}|%-10t|%ecompServiceName|%X{partnerName}|%X{targetEntity}|%X{targetServiceName}|%ecompErrorCategory|%ecompResponseCode|%ecompResponseDescription|co=%X{component}:%replace(%replace(%m){'\\|', '!'}){'\r|\n', '^'}%n"/> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 43 | <property name="eelfTransLogPattern" value="%ecompStartTime|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%ecompServiceName|%X{partnerName}|%ecompStatusCode|%X{responseCode}|%replace(%replace(%X{responseDescription}){'\\|', '!'}){'\r|\n', '^'}|%X{instanceUUID}|%level|%X{severity}|%X{serverIpAddress}|%ecompElapsedTime|%X{server}|%X{clientIpAddress}|%eelfClassOfCaller|%X{unused}|%X{processKey}|%X{customField1}|%X{customField2}|%X{customField3}|%X{customField4}|co=%X{partnerName}:%m%n"/> |
| 44 | --> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 45 | <property name="p_tim" value="%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", UTC}" /> |
| 46 | <property name="p_lvl" value="%level" /> |
| 47 | <property name="p_log" value="%logger" /> |
| 48 | <property name="p_mdc" value="%replace(%replace(%replace(%mdc){'\t','\\\\t'}){'\n', '\\\\n'}){'\\|', '!'}" /> |
| 49 | <property name="p_msg" value="%replace(%replace(%msg){'\t', '\\\\t'}){'\n','\\\\n'}" /> |
| 50 | <property name="p_exc" value="%replace(%replace(%rootException){'\t', '\\\\t'}){'\n','\\\\n'}" /> |
| 51 | <property name="p_mak" value="%replace(%replace(%marker){'\t', '\\\\t'}){'\n','\\\\n'}" /> |
| 52 | <property name="p_thr" value="%thread" /> |
| 53 | <property name="pattern" value="%nopexception${p_tim}\t${p_thr}\t${p_lvl}\t${p_log}\t${p_mdc}\t${p_msg}\t${p_exc}\t${p_mak}\t%n" /> |
| 54 | <!-- Patterns from onap demo --> |
| 55 | <property name="errorPattern" value="%X{LogTimestamp}|%X{RequestID}|%thread|%replace(%X{ServiceName}){'\\|', '!'}|%X{PartnerName}|%X{TargetEntity}|%replace(%X{TargetServiceName}){'\\|', '!'}|%.-5level|%X{ErrorCode}|%X{ErrorDesc}|%msg%n" /> |
| 56 | <property name="debugPattern" value="%X{LogTimestamp}|%X{RequestID}|%msg\t${p_mdc}\t${p_msg}\t${p_exc}\t${p_mak}\t|^%n" /> |
| 57 | <property name="auditPattern" value="%X{EntryTimestamp}|%X{LogTimestamp}|%X{RequestID}|%X{ServiceInstanceID}|%thread||%replace(%X{ServiceName}){'\\|', '!'}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}||||${p_mak}|${p_mdc}|||%msg%n" /> |
| 58 | <property name="metricPattern" value="%X{InvokeTimestamp}|%X{LogTimestamp}|%X{RequestID}|%X{ServiceInstanceID}|%thread||%replace(%X{ServiceName}){'\\|', '!'}|%X{PartnerName}|%X{TargetEntity}|%replace(%X{TargetServiceName}){'\\|', '!'}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}||||%X{TargetVirtualEntity}|${p_mak}|${p_mdc}|||%msg%n" /> |
| 59 | <property name="transLogPattern" value="%X{LogTimestamp}|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{RequestID}|%X{ServiceInstanceID}|%-10t|%X{ServerFQDN}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%replace(%replace(%X{ResponseDesc}){'\\|', '!'}){'\r|\n', '^'}|%X{InstanceUUID}|%level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{clientIpAddress}||%X{unused}|%X{processKey}|%X{customField1}|%X{customField2}|%X{customField3}|%X{customField4}|co=%X{PartnerName}:%m%n" /> |
| 60 | <conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" /> |
| 61 | <conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" /> |
| 62 | <conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" /> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 63 | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 64 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 65 | <encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder"> |
| 66 | <providers> |
| 67 | <timestamp><fieldName>timestamp</fieldName></timestamp> |
| 68 | <message/> |
| 69 | <mdc> |
| 70 | <fieldName>context</fieldName> |
| 71 | <excludeMdcKeyName>ServerIPAddress</excludeMdcKeyName> |
| 72 | <excludeMdcKeyName>EntryTimestamp</excludeMdcKeyName> |
| 73 | <excludeMdcKeyName>InvokeTimestamp</excludeMdcKeyName> |
| 74 | <excludeMdcKeyName>ErrorCode</excludeMdcKeyName> |
| 75 | <excludeMdcKeyName>ErrorDesc</excludeMdcKeyName> |
| 76 | </mdc> |
| 77 | <stackTrace> |
| 78 | <fieldName>exception</fieldName> |
| 79 | <throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter"> |
| 80 | <exclude>^sun\.reflect\..*\.invoke</exclude> |
| 81 | <exclude>^net\.sf\.cglib\.proxy\.MethodProxy\.invoke</exclude> |
| 82 | <rootCauseFirst>true</rootCauseFirst> |
| 83 | </throwableConverter> |
| 84 | </stackTrace> |
| 85 | <threadName><fieldName>thread</fieldName></threadName> |
| 86 | <loggerName> |
| 87 | <fieldName>logger</fieldName> |
| 88 | <shortenedLoggerNameLength>36</shortenedLoggerNameLength> |
| 89 | </loggerName> |
| 90 | <logLevel/> |
| 91 | <pattern> |
| 92 | <pattern>{"logType":"app"}</pattern> |
| 93 | </pattern> |
| 94 | </providers> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 95 | </encoder> |
| 96 | </appender> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 97 | |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 98 | <if condition='property("logToFileEnabled").contains("true")'> |
| 99 | <then> |
| 100 | <appender name="SANE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 101 | <file>${logDirectory}/rest/sane.log</file> |
| 102 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 103 | <fileNamePattern>${logDirectory}/rest/sane.log.%d{yyyy-MM-dd}</fileNamePattern> |
| 104 | <maxHistory>${maxHistory}</maxHistory> |
| 105 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 106 | </rollingPolicy> |
| 107 | <encoder> |
| 108 | <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n |
| 109 | </pattern> |
| 110 | </encoder> |
| 111 | </appender> |
| 112 | <appender name="asyncSANE" class="ch.qos.logback.classic.AsyncAppender"> |
| 113 | <queueSize>${queueSize}</queueSize> |
| 114 | <includeCallerData>true</includeCallerData> |
| 115 | <appender-ref ref="SANE" /> |
| 116 | </appender> |
| 117 | <appender name="METRIC" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 118 | <file>${logDirectory}/rest/metrics.log</file> |
| 119 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 120 | <fileNamePattern>${logDirectory}/rest/metrics.log.%d{yyyy-MM-dd}</fileNamePattern> |
| 121 | <maxHistory>${maxHistory}</maxHistory> |
| 122 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 123 | </rollingPolicy> |
| 124 | <encoder> |
| 125 | <pattern>${metricPattern}</pattern> |
| 126 | </encoder> |
| 127 | </appender> |
| 128 | <appender name="asyncMETRIC" class="ch.qos.logback.classic.AsyncAppender"> |
| 129 | <queueSize>${queueSize}</queueSize> |
| 130 | <includeCallerData>true</includeCallerData> |
| 131 | <appender-ref ref="METRIC" /> |
| 132 | </appender> |
| 133 | <appender name="DEBUG" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 134 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 135 | <level>DEBUG</level> |
| 136 | <onMatch>ACCEPT</onMatch> |
| 137 | <onMismatch>DENY</onMismatch> |
| 138 | </filter> |
| 139 | <file>${logDirectory}/rest/debug.log</file> |
| 140 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 141 | <fileNamePattern>${logDirectory}/rest/debug.log.%d{yyyy-MM-dd}</fileNamePattern> |
| 142 | <maxHistory>${maxHistory}</maxHistory> |
| 143 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 144 | </rollingPolicy> |
| 145 | <encoder> |
| 146 | <pattern>${debugPattern}</pattern> |
| 147 | </encoder> |
| 148 | </appender> |
| 149 | <appender name="asyncDEBUG" class="ch.qos.logback.classic.AsyncAppender"> |
| 150 | <queueSize>${queueSize}</queueSize> |
| 151 | <appender-ref ref="DEBUG" /> |
| 152 | <includeCallerData>true</includeCallerData> |
| 153 | </appender> |
| 154 | <appender name="ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 155 | <file>${logDirectory}/rest/error.log</file> |
| 156 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 157 | <fileNamePattern>${logDirectory}/rest/error.log.%d{yyyy-MM-dd}</fileNamePattern> |
| 158 | <maxHistory>${maxHistory}</maxHistory> |
| 159 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 160 | </rollingPolicy> |
| 161 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 162 | <level>WARN</level> |
| 163 | </filter> |
| 164 | <encoder> |
| 165 | <pattern>${errorPattern}</pattern> |
| 166 | </encoder> |
| 167 | </appender> |
| 168 | <appender name="asyncERROR" class="ch.qos.logback.classic.AsyncAppender"> |
| 169 | <queueSize>${queueSize}</queueSize> |
| 170 | <appender-ref ref="ERROR" /> |
| 171 | </appender> |
| 172 | <appender name="AUDIT" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 173 | <file>${logDirectory}/rest/audit.log</file> |
| 174 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 175 | <fileNamePattern>${logDirectory}/rest/audit.log.%d{yyyy-MM-dd} |
| 176 | </fileNamePattern> |
| 177 | <maxHistory>${maxHistory}</maxHistory> |
| 178 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 179 | </rollingPolicy> |
| 180 | <encoder> |
| 181 | <pattern>${auditPattern}</pattern> |
| 182 | </encoder> |
| 183 | </appender> |
| 184 | <appender name="asyncAUDIT" class="ch.qos.logback.classic.AsyncAppender"> |
| 185 | <queueSize>${queueSize}</queueSize> |
| 186 | <includeCallerData>true</includeCallerData> |
| 187 | <appender-ref ref="AUDIT" /> |
| 188 | </appender> |
| 189 | <appender name="translog" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 190 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 191 | <level>DEBUG</level> |
| 192 | <onMatch>ACCEPT</onMatch> |
| 193 | <onMismatch>DENY</onMismatch> |
| 194 | </filter> |
| 195 | <file>${logDirectory}/rest/translog.log</file> |
| 196 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 197 | <fileNamePattern>${logDirectory}/rest/translog.log.%d{yyyy-MM-dd} |
| 198 | </fileNamePattern> |
| 199 | <maxHistory>${maxHistory}</maxHistory> |
| 200 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 201 | </rollingPolicy> |
| 202 | <encoder> |
| 203 | <pattern>${transLogPattern}</pattern> |
| 204 | </encoder> |
| 205 | </appender> |
| 206 | <appender name="asynctranslog" class="ch.qos.logback.classic.AsyncAppender"> |
| 207 | <queueSize>${queueSize}</queueSize> |
| 208 | <includeCallerData>true</includeCallerData> |
| 209 | <appender-ref ref="translog" /> |
| 210 | </appender> |
| 211 | <appender name="dmaapAAIEventConsumer" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 212 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 213 | <level>WARN</level> |
| 214 | </filter> |
| 215 | <File>${logDirectory}/dmaapAAIEventConsumer/error.log</File> |
| 216 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 217 | <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/error.log.%d{yyyy-MM-dd} |
| 218 | </fileNamePattern> |
| 219 | <maxHistory>${maxHistory}</maxHistory> |
| 220 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 221 | </rollingPolicy> |
| 222 | <encoder> |
| 223 | <pattern>${errorPattern}</pattern> |
| 224 | </encoder> |
| 225 | </appender> |
| 226 | <appender name="dmaapAAIEventConsumerDebug" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 227 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 228 | <level>DEBUG</level> |
| 229 | <onMatch>ACCEPT</onMatch> |
| 230 | <onMismatch>DENY</onMismatch> |
| 231 | </filter> |
| 232 | <File>${logDirectory}/dmaapAAIEventConsumer/debug.log</File> |
| 233 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 234 | <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/debug.log.%d{yyyy-MM-dd} |
| 235 | </fileNamePattern> |
| 236 | <maxHistory>${maxHistory}</maxHistory> |
| 237 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 238 | </rollingPolicy> |
| 239 | <encoder> |
| 240 | <pattern>${debugPattern}</pattern> |
| 241 | </encoder> |
| 242 | </appender> |
| 243 | <appender name="dmaapAAIEventConsumerInfo" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 244 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 245 | <level>INFO</level> |
| 246 | <onMatch>ACCEPT</onMatch> |
| 247 | <onMismatch>DENY</onMismatch> |
| 248 | </filter> |
| 249 | <File>${logDirectory}/dmaapAAIEventConsumer/dmaap-transaction.log</File> |
| 250 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 251 | <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/dmaap-transaction.log.%d{yyyy-MM-dd} |
| 252 | </fileNamePattern> |
| 253 | <maxHistory>${maxHistory}</maxHistory> |
| 254 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 255 | </rollingPolicy> |
| 256 | <encoder> |
| 257 | <pattern>${auditPattern}</pattern> |
| 258 | </encoder> |
| 259 | </appender> |
| 260 | <appender name="dmaapAAIEventConsumerMetric" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 261 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 262 | <level>INFO</level> |
| 263 | <onMatch>ACCEPT</onMatch> |
| 264 | <onMismatch>DENY</onMismatch> |
| 265 | </filter> |
| 266 | <File>${logDirectory}/dmaapAAIEventConsumer/metrics.log</File> |
| 267 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 268 | <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/metrics.log.%d{yyyy-MM-dd} |
| 269 | </fileNamePattern> |
| 270 | <maxHistory>${maxHistory}</maxHistory> |
| 271 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 272 | </rollingPolicy> |
| 273 | <encoder> |
| 274 | <pattern>${metricPattern}</pattern> |
| 275 | </encoder> |
| 276 | </appender> |
| 277 | <appender name="external" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 278 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 279 | <level>WARN</level> |
| 280 | </filter> |
| 281 | <file>${logDirectory}/external/external.log</file> |
| 282 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 283 | <fileNamePattern>${logDirectory}/external/external.log.%d{yyyy-MM-dd} |
| 284 | </fileNamePattern> |
| 285 | <maxHistory>${maxHistory}</maxHistory> |
| 286 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 287 | </rollingPolicy> |
| 288 | <encoder> |
| 289 | <pattern>${debugPattern}</pattern> |
| 290 | </encoder> |
| 291 | </appender> |
| 292 | <appender name="auth" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 293 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 294 | <level>DEBUG</level> |
| 295 | </filter> |
| 296 | <file>${logDirectory}/auth/auth.log</file> |
| 297 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 298 | <fileNamePattern>${logDirectory}/auth/auth.log.%d{yyyy-MM-dd} |
| 299 | </fileNamePattern> |
| 300 | <maxHistory>${maxHistory}</maxHistory> |
| 301 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 302 | </rollingPolicy> |
| 303 | <encoder> |
| 304 | <pattern>%d{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}[%thread] %-5level %logger{1024} - %msg%n</pattern> |
| 305 | </encoder> |
| 306 | </appender> |
| 307 | <appender name="asyncAUTH" class="ch.qos.logback.classic.AsyncAppender"> |
| 308 | <queueSize>${queueSize}</queueSize> |
| 309 | <includeCallerData>true</includeCallerData> |
| 310 | <appender-ref ref="auth" /> |
| 311 | </appender> |
| 312 | </then> |
| 313 | </if> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 314 | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 315 | <!-- logback internals logging --> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 316 | <logger name="ch.qos.logback.classic" level="WARN" /> |
| 317 | <logger name="ch.qos.logback.core" level="WARN" /> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 318 | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 319 | <logger name="com.att.aft.dme2" level="WARN" /> |
| 320 | <logger name="com.jayway.jsonpath" level="WARN" /> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 321 | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 322 | <logger name="org.apache" level="OFF" /> |
| 323 | <logger name="org.apache.commons" level="WARN" /> |
| 324 | <logger name="org.apache.zookeeper" level="OFF" /> |
| 325 | <logger name="org.codehaus.groovy" level="WARN" /> |
| 326 | <logger name="org.eclipse.jetty" level="WARN" /> |
| 327 | <!-- Spring related loggers --> |
| 328 | <logger name="org.springframework" level="WARN" /> |
| 329 | <logger name="org.springframework.beans" level="WARN" /> |
| 330 | <logger name="org.springframework.web" level="WARN" /> |
| 331 | <logger name="org.janusgraph" level="WARN" /> |
| 332 | <logger name="org.zookeeper" level="OFF" /> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 333 | |
| 334 | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 335 | <logger name="org.onap.aai" level="DEBUG" additivity="false"> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 336 | <if condition='property("logToFileEnabled").contains("true")'> |
| 337 | <then> |
| 338 | <appender-ref ref="asyncDEBUG" /> |
| 339 | <appender-ref ref="asyncSANE" /> |
| 340 | </then> |
| 341 | </if> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 342 | <appender-ref ref="STDOUT" /> |
| 343 | </logger> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 344 | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 345 | <logger name="org.onap.aai.aaf.auth" level="DEBUG" additivity="false"> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 346 | <if condition='property("logToFileEnabled").contains("true")'> |
| 347 | <then> |
| 348 | <appender-ref ref="asyncAUTH" /> |
| 349 | </then> |
| 350 | </if> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 351 | <appender-ref ref="STDOUT" /> |
| 352 | </logger> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 353 | |
| 354 | <logger name="org.onap.aai.aailog.logs.AaiScheduledTaskAuditLog" level="INFO" additivity="false"> |
| 355 | <if condition='property("logToFileEnabled").contains("true")'> |
| 356 | <then> |
| 357 | <appender-ref ref="asyncAUDIT" /> |
| 358 | </then> |
| 359 | </if> |
| 360 | <appender-ref ref="STDOUT" /> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 361 | </logger> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 362 | |
| 363 | <logger name="org.onap.logging.filter.base.AbstractAuditLogFilter" level="INFO" additivity="false"> |
| 364 | <if condition='property("logToFileEnabled").contains("true")'> |
| 365 | <then> |
| 366 | <appender-ref ref="asyncAUDIT" /> |
| 367 | </then> |
| 368 | </if> |
| 369 | <appender-ref ref="STDOUT" /> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 370 | </logger> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 371 | |
| 372 | <logger name="org.onap.aai.aailog.logs.AaiDBMetricLog" level="INFO" additivity="false"> |
| 373 | <if condition='property("logToFileEnabled").contains("true")'> |
| 374 | <then> |
| 375 | <appender-ref ref="asyncMETRIC" /> |
| 376 | </then> |
| 377 | </if> |
| 378 | <appender-ref ref="STDOUT" /> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 379 | </logger> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 380 | |
| 381 | <logger name="org.onap.aai.aailog.logs.AaiDmaapMetricLog" level="INFO" additivity="false"> |
| 382 | <if condition='property("logToFileEnabled").contains("true")'> |
| 383 | <then> |
| 384 | <appender-ref ref="dmaapAAIEventConsumerMetric" /> |
| 385 | </then> |
| 386 | </if> |
| 387 | <appender-ref ref="STDOUT" /> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 388 | </logger> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 389 | |
| 390 | <logger name="org.onap.aai.logging.ErrorLogHelper" level="WARN" additivity="false"> |
| 391 | <if condition='property("logToFileEnabled").contains("true")'> |
| 392 | <then> |
| 393 | <appender-ref ref="asyncERROR" /> |
| 394 | </then> |
| 395 | </if> |
| 396 | <appender-ref ref="STDOUT" /> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 397 | </logger> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 398 | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 399 | <logger name="org.onap.aai.interceptors.post" level="DEBUG" additivity="false"> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 400 | <if condition='property("logToFileEnabled").contains("true")'> |
| 401 | <then> |
| 402 | <appender-ref ref="asynctranslog" /> |
| 403 | </then> |
| 404 | </if> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 405 | <appender-ref ref="STDOUT" /> |
| 406 | </logger> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 407 | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 408 | <logger name="org.onap.aai.dmaap" level="DEBUG" additivity="false"> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 409 | <if condition='property("logToFileEnabled").contains("true")'> |
| 410 | <then> |
| 411 | <appender-ref ref="dmaapAAIEventConsumer" /> |
| 412 | <appender-ref ref="dmaapAAIEventConsumerDebug" /> |
| 413 | </then> |
| 414 | </if> |
| 415 | <appender-ref ref="STDOUT" /> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 416 | </logger> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 417 | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 418 | <logger name="com.att.nsa.mr" level="INFO"> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 419 | <if condition='property("logToFileEnabled").contains("true")'> |
| 420 | <then> |
| 421 | <appender-ref ref="dmaapAAIEventConsumerInfo" /> |
| 422 | </then> |
| 423 | </if> |
| 424 | <appender-ref ref="STDOUT" /> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 425 | </logger> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 426 | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 427 | <root level="DEBUG"> |
leila | b3bfd4d | 2022-11-10 14:27:16 -0500 | [diff] [blame] | 428 | <if condition='property("logToFileEnabled").contains("true")'> |
| 429 | <then> |
| 430 | <appender-ref ref="external" /> |
| 431 | </then> |
| 432 | </if> |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 433 | <appender-ref ref="STDOUT" /> |
| 434 | </root> |
| 435 | </configuration> |