blob: 3dc4867f5d3490d3b82da234aa1ef36955c79d74 [file] [log] [blame]
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +01001{{/*<!--
Sylvain Desbureaux70070412020-11-09 21:58:48 +01002 ============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 Desbureauxa41dfc02021-02-15 10:14:22 +01007 Modifications Copyright © 2020 Orange
Sylvain Desbureaux70070412020-11-09 21:58:48 +01008 ================================================================================
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 Desbureauxa41dfc02021-02-15 10:14:22 +010013 http://www.apache.org/licenses/LICENSE-2.0
Sylvain Desbureaux70070412020-11-09 21:58:48 +010014
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 Desbureaux70070412020-11-09 21:58:48 +010021-->
leilab3bfd4d2022-11-10 14:27:16 -050022*/}}
23<configuration scan="true" scanPeriod="60 seconds" debug="false">
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +010024 <statusListener class="ch.qos.logback.core.status.NopStatusListener" />
Sylvain Desbureaux70070412020-11-09 21:58:48 +010025
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +010026 <property resource="application.properties" />
Sylvain Desbureaux70070412020-11-09 21:58:48 +010027
leilab3bfd4d2022-11-10 14:27:16 -050028 <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 Desbureaux70070412020-11-09 21:58:48 +010034
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +010035 <property name="AJSC_HOME" value="${AJSC_HOME:-.}" />
36 <jmxConfigurator />
37 <property name="logDirectory" value="${AJSC_HOME}/logs" />
38 <!-- Old patterns
guillaume.lambert30ec3902021-09-14 12:32:24 +020039 <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 Desbureaux70070412020-11-09 21:58:48 +010043 <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 Desbureauxa41dfc02021-02-15 10:14:22 +010045 <property name="p_tim" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, 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" />
leilab3bfd4d2022-11-10 14:27:16 -050063
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +010064 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
leilab3bfd4d2022-11-10 14:27:16 -050065 <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 Desbureauxa41dfc02021-02-15 10:14:22 +010095 </encoder>
96 </appender>
Sylvain Desbureaux70070412020-11-09 21:58:48 +010097
leilab3bfd4d2022-11-10 14:27:16 -050098 <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 Desbureaux70070412020-11-09 21:58:48 +0100314
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100315 <!-- logback internals logging -->
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100316 <logger name="ch.qos.logback.classic" level="WARN" />
317 <logger name="ch.qos.logback.core" level="WARN" />
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100318
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100319 <logger name="com.att.aft.dme2" level="WARN" />
320 <logger name="com.jayway.jsonpath" level="WARN" />
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100321
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100322 <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 Desbureaux70070412020-11-09 21:58:48 +0100333
334
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100335 <logger name="org.onap.aai" level="DEBUG" additivity="false">
leilab3bfd4d2022-11-10 14:27:16 -0500336 <if condition='property("logToFileEnabled").contains("true")'>
337 <then>
338 <appender-ref ref="asyncDEBUG" />
339 <appender-ref ref="asyncSANE" />
340 </then>
341 </if>
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100342 <appender-ref ref="STDOUT" />
343 </logger>
leilab3bfd4d2022-11-10 14:27:16 -0500344
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100345 <logger name="org.onap.aai.aaf.auth" level="DEBUG" additivity="false">
leilab3bfd4d2022-11-10 14:27:16 -0500346 <if condition='property("logToFileEnabled").contains("true")'>
347 <then>
348 <appender-ref ref="asyncAUTH" />
349 </then>
350 </if>
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100351 <appender-ref ref="STDOUT" />
352 </logger>
leilab3bfd4d2022-11-10 14:27:16 -0500353
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 Desbureauxa41dfc02021-02-15 10:14:22 +0100361 </logger>
leilab3bfd4d2022-11-10 14:27:16 -0500362
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 Desbureauxa41dfc02021-02-15 10:14:22 +0100370 </logger>
leilab3bfd4d2022-11-10 14:27:16 -0500371
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 Desbureauxa41dfc02021-02-15 10:14:22 +0100379 </logger>
leilab3bfd4d2022-11-10 14:27:16 -0500380
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 Desbureauxa41dfc02021-02-15 10:14:22 +0100388 </logger>
leilab3bfd4d2022-11-10 14:27:16 -0500389
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 Desbureauxa41dfc02021-02-15 10:14:22 +0100397 </logger>
leilab3bfd4d2022-11-10 14:27:16 -0500398
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100399 <logger name="org.onap.aai.interceptors.post" level="DEBUG" additivity="false">
leilab3bfd4d2022-11-10 14:27:16 -0500400 <if condition='property("logToFileEnabled").contains("true")'>
401 <then>
402 <appender-ref ref="asynctranslog" />
403 </then>
404 </if>
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100405 <appender-ref ref="STDOUT" />
406 </logger>
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100407
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100408 <logger name="org.onap.aai.dmaap" level="DEBUG" additivity="false">
leilab3bfd4d2022-11-10 14:27:16 -0500409 <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 Desbureauxa41dfc02021-02-15 10:14:22 +0100416 </logger>
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100417
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100418 <logger name="com.att.nsa.mr" level="INFO">
leilab3bfd4d2022-11-10 14:27:16 -0500419 <if condition='property("logToFileEnabled").contains("true")'>
420 <then>
421 <appender-ref ref="dmaapAAIEventConsumerInfo" />
422 </then>
423 </if>
424 <appender-ref ref="STDOUT" />
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100425 </logger>
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100426
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100427 <root level="DEBUG">
leilab3bfd4d2022-11-10 14:27:16 -0500428 <if condition='property("logToFileEnabled").contains("true")'>
429 <then>
430 <appender-ref ref="external" />
431 </then>
432 </if>
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +0100433 <appender-ref ref="STDOUT" />
434 </root>
435</configuration>