blob: 787fc64b6f54b31cfb51fa68828f3dc0ef076a34 [file] [log] [blame]
Kajur, Harish (vk250x)00107b52018-09-06 14:44:40 -04001<!--
2
3 ============LICENSE_START=======================================================
4 org.onap.aai
5 ================================================================================
6 Copyright 2018 AT&T Intellectual Property. All rights reserved.
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20
21-->
22<configuration scan="true" scanPeriod="60 seconds" debug="false">
23 <statusListener class="ch.qos.logback.core.status.NopStatusListener" />
24
25 <property resource="application.properties" />
26
27 <property name="namespace" value="graph-admin"/>
28
29 <property name="AJSC_HOME" value="${AJSC_HOME:-.}" />
30
31 <property name="logDirectory" value="${AJSC_HOME}/logs" />
32 <property name="eelfLogPattern" value="%ecompStartTime|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%X{serviceName}|%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"/>
33 <property name="eelfAuditLogPattern" value="%ecompStartTime|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%X{serviceName}|%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"/>
34 <property name="eelfMetricLogPattern" value="%ecompStartTime|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%X{serviceName}|%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"/>
35 <!-- <property name="eelfErrorLogPattern" value="%ecompStartTime|%X{requestId}|%-10t|%X{serviceName}|%X{partnerName}|%X{targetEntity}|%X{targetServiceName}|%ecompErrorCategory|%X{responseCode}|%replace(%replace(%X{responseDescription}){'\\|', '!'}){'\r|\n|\r\n', '^'}|co=%X{component}:%replace(%replace(%m){'\\|', '!'}){'\r|\n', '^'}%n"/> -->
36 <property name="eelfErrorLogPattern" value="%ecompStartTime|%X{requestId}|%-10t|%X{serviceName}|%X{partnerName}|%X{targetEntity}|%X{targetServiceName}|%ecompErrorCategory|%ecompResponseCode|%ecompResponseDescription|co=%X{component}:%replace(%replace(%m){'\\|', '!'}){'\r|\n', '^'}%n"/>
37 <property name="eelfTransLogPattern" value="%ecompStartTime|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%X{serviceName}|%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"/>
38
39 <conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" />
40 <conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" />
41 <conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" />
42 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
43 <encoder>
44 <pattern>
45 %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}
46 </pattern>
47 </encoder>
48 </appender>
49
50 <appender name="SANE" class="ch.qos.logback.core.rolling.RollingFileAppender">
51 <file>${logDirectory}/rest/sane.log</file>
52 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
53 <fileNamePattern>${logDirectory}/rest/sane.log.%d{yyyy-MM-dd}</fileNamePattern>
54 </rollingPolicy>
55 <encoder>
56 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n
57 </pattern>
58 </encoder>
59 </appender>
60
61 <appender name="asyncSANE" class="ch.qos.logback.classic.AsyncAppender">
62 <queueSize>1000</queueSize>
63 <includeCallerData>true</includeCallerData>
64 <appender-ref ref="SANE" />
65 </appender>
66
67 <appender name="METRIC"
68 class="ch.qos.logback.core.rolling.RollingFileAppender">
69 <filter class="ch.qos.logback.classic.filter.LevelFilter">
70 <level>INFO</level>
71 <onMatch>ACCEPT</onMatch>
72 <onMismatch>DENY</onMismatch>
73 </filter>
74 <file>${logDirectory}/rest/metrics.log</file>
75 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
76 <fileNamePattern>${logDirectory}/rest/metrics.log.%d{yyyy-MM-dd}
77 </fileNamePattern>
78 </rollingPolicy>
79 <encoder class="org.onap.aai.logging.EcompEncoder">
80 <pattern>${eelfMetricLogPattern}</pattern>
81 </encoder>
82 </appender>
83 <appender name="asyncMETRIC" class="ch.qos.logback.classic.AsyncAppender">
84 <queueSize>1000</queueSize>
85 <includeCallerData>true</includeCallerData>
86 <appender-ref ref="METRIC" />
87 </appender>
88
89 <appender name="DEBUG"
90 class="ch.qos.logback.core.rolling.RollingFileAppender">
91 <filter class="ch.qos.logback.classic.filter.LevelFilter">
92 <level>DEBUG</level>
93 <onMatch>ACCEPT</onMatch>
94 <onMismatch>DENY</onMismatch>
95 </filter>
96 <file>${logDirectory}/rest/debug.log</file>
97 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
98 <fileNamePattern>${logDirectory}/rest/debug.log.%d{yyyy-MM-dd}
99 </fileNamePattern>
100 </rollingPolicy>
101 <encoder class="org.onap.aai.logging.EcompEncoder">
102 <pattern>${eelfLogPattern}</pattern>
103 </encoder>
104 </appender>
105
106 <appender name="asyncDEBUG" class="ch.qos.logback.classic.AsyncAppender">
107 <queueSize>1000</queueSize>
108 <includeCallerData>true</includeCallerData>
109 <appender-ref ref="DEBUG" />
110 </appender>
111
112 <appender name="ERROR"
113 class="ch.qos.logback.core.rolling.RollingFileAppender">
114 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
115 <level>WARN</level>
116 </filter>
117 <file>${logDirectory}/rest/error.log</file>
118 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
119 <fileNamePattern>${logDirectory}/rest/error.log.%d{yyyy-MM-dd}
120 </fileNamePattern>
121 </rollingPolicy>
122 <encoder class="org.onap.aai.logging.EcompEncoder">
123 <pattern>${"eelfErrorLogPattern"}</pattern>
124 </encoder>
125 </appender>
126
127 <appender name="asyncERROR" class="ch.qos.logback.classic.AsyncAppender">
128 <queueSize>1000</queueSize>
129 <includeCallerData>true</includeCallerData>
130 <appender-ref ref="ERROR" />
131 </appender>
132
133 <appender name="AUDIT"
134 class="ch.qos.logback.core.rolling.RollingFileAppender">
135 <file>${logDirectory}/rest/audit.log</file>
136 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
137 <fileNamePattern>${logDirectory}/rest/audit.log.%d{yyyy-MM-dd}
138 </fileNamePattern>
139 </rollingPolicy>
140 <encoder class="org.onap.aai.logging.EcompEncoder">
141 <pattern>${eelfAuditLogPattern}</pattern>
142 </encoder>
143 </appender>
144
145 <appender name="asyncAUDIT" class="ch.qos.logback.classic.AsyncAppender">
146 <queueSize>1000</queueSize>
147 <includeCallerData>true</includeCallerData>
148 <appender-ref ref="AUDIT" />
149 </appender>
150
151 <appender name="translog"
152 class="ch.qos.logback.core.rolling.RollingFileAppender">
153 <filter class="ch.qos.logback.classic.filter.LevelFilter">
154 <level>DEBUG</level>
155 <onMatch>ACCEPT</onMatch>
156 <onMismatch>DENY</onMismatch>
157 </filter>
158 <file>${logDirectory}/rest/translog.log</file>
159 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
160 <fileNamePattern>${logDirectory}/rest/translog.log.%d{yyyy-MM-dd}
161 </fileNamePattern>
162 </rollingPolicy>
163 <encoder class="org.onap.aai.logging.EcompEncoder">
164 <pattern>${eelfTransLogPattern}</pattern>
165 </encoder>
166 </appender>
167
168 <appender name="asynctranslog" class="ch.qos.logback.classic.AsyncAppender">
169 <queueSize>1000</queueSize>
170 <includeCallerData>true</includeCallerData>
171 <appender-ref ref="translog" />
172 </appender>
173
174 <appender name="dmaapAAIEventConsumer"
175 class="ch.qos.logback.core.rolling.RollingFileAppender">
176 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
177 <level>WARN</level>
178 </filter>
179 <File>${logDirectory}/dmaapAAIEventConsumer/error.log</File>
180 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
181 <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/error.log.%d{yyyy-MM-dd}
182 </fileNamePattern>
183 </rollingPolicy>
184 <encoder class="org.onap.aai.logging.EcompEncoder">
185 <pattern>${"eelfErrorLogPattern"}</pattern>
186 </encoder>
187 </appender>
188
189 <appender name="dmaapAAIEventConsumerDebug"
190 class="ch.qos.logback.core.rolling.RollingFileAppender">
191 <filter class="ch.qos.logback.classic.filter.LevelFilter">
192 <level>DEBUG</level>
193 <onMatch>ACCEPT</onMatch>
194 <onMismatch>DENY</onMismatch>
195 </filter>
196 <File>${logDirectory}/dmaapAAIEventConsumer/debug.log</File>
197 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
198 <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/debug.log.%d{yyyy-MM-dd}
199 </fileNamePattern>
200 </rollingPolicy>
201 <encoder class="org.onap.aai.logging.EcompEncoder">
202 <pattern>${eelfLogPattern}</pattern>
203 </encoder>
204 </appender>
205 <appender name="dmaapAAIEventConsumerMetric"
206 class="ch.qos.logback.core.rolling.RollingFileAppender">
207 <filter class="ch.qos.logback.classic.filter.LevelFilter">
208 <level>INFO</level>
209 <onMatch>ACCEPT</onMatch>
210 <onMismatch>DENY</onMismatch>
211 </filter>
212 <File>${logDirectory}/dmaapAAIEventConsumer/metrics.log</File>
213 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
214 <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/metrics.log.%d{yyyy-MM-dd}
215 </fileNamePattern>
216 </rollingPolicy>
217 <encoder class="org.onap.aai.logging.EcompEncoder">
218 <pattern>${eelfMetricLogPattern}</pattern>
219 </encoder>
220 </appender>
221 <appender name="external"
222 class="ch.qos.logback.core.rolling.RollingFileAppender">
223 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
224 <level>WARN</level>
225 </filter>
226 <file>${logDirectory}/external/external.log</file>
227 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
228 <fileNamePattern>${logDirectory}/external/external.log.%d{yyyy-MM-dd}
229 </fileNamePattern>
230 </rollingPolicy>
231 <encoder class="org.onap.aai.logging.EcompEncoder">
232 <pattern>${eelfLogPattern}</pattern>
233 </encoder>
234 </appender>
235
236 <!-- DataGrooming logs started -->
237 <appender name="dataGrooming" class="ch.qos.logback.core.rolling.RollingFileAppender">
238 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
239 <level>WARN</level>
240 </filter>
241 <File>${logDirectory}/dataGrooming/error.log</File>
242 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
243 <fileNamePattern>${logDirectory}/dataGrooming/error.log.%d{yyyy-MM-dd}</fileNamePattern>
244 </rollingPolicy>
245 <encoder class="org.onap.aai.logging.EcompEncoder">
246 <pattern>${eelfErrorLogPattern}</pattern>
247 </encoder>
248 </appender>
249
250 <appender name="dataGroomingdebug" class="ch.qos.logback.core.rolling.RollingFileAppender">
251 <filter class="ch.qos.logback.classic.filter.LevelFilter">
252 <level>DEBUG</level>
253 <onMatch>ACCEPT</onMatch>
254 <onMismatch>DENY</onMismatch>
255 </filter>
256 <File>${logDirectory}/dataGrooming/debug.log</File>
257 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
258 <fileNamePattern>${logDirectory}/dataGrooming/debug.log.%d{yyyy-MM-dd}</fileNamePattern>
259 </rollingPolicy>
260 <encoder class="org.onap.aai.logging.EcompEncoder">
261 <pattern>${eelfLogPattern}</pattern>
262 </encoder>
263 </appender>
264
265 <appender name="dataGroomingmetric" class="ch.qos.logback.core.rolling.RollingFileAppender">
266 <filter class="ch.qos.logback.classic.filter.LevelFilter">
267 <level>INFO</level>
268 <onMatch>ACCEPT</onMatch>
269 <onMismatch>DENY</onMismatch>
270 </filter>
271 <File>${logDirectory}/dataGrooming/metrics.log</File>
272 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
273 <fileNamePattern>${logDirectory}/dataGrooming/metrics.log.%d{yyyy-MM-dd}</fileNamePattern>
274 </rollingPolicy>
275 <encoder class="org.onap.aai.logging.EcompEncoder">
276 <pattern>${eelfMetricLogPattern}</pattern>
277 </encoder>
278 </appender>
279
280 <!-- DataGrooming logs ended -->
281
282 <!-- DataSnapshot logs started -->
283 <appender name="dataSnapshot" class="ch.qos.logback.core.rolling.RollingFileAppender">
284 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
285 <level>WARN</level>
286 </filter>
287 <File>${logDirectory}/dataSnapshot/error.log</File>
288 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
289 <fileNamePattern>${logDirectory}/dataSnapshot/error.log.%d{yyyy-MM-dd}</fileNamePattern>
290 </rollingPolicy>
291 <encoder class="org.onap.aai.logging.EcompEncoder">
292 <pattern>${eelfErrorLogPattern}</pattern>
293 </encoder>
294 </appender>
295
296 <appender name="dataSnapshotdebug" class="ch.qos.logback.core.rolling.RollingFileAppender">
297 <filter class="ch.qos.logback.classic.filter.LevelFilter">
298 <level>DEBUG</level>
299 <onMatch>ACCEPT</onMatch>
300 <onMismatch>DENY</onMismatch>
301 </filter>
302 <File>${logDirectory}/dataSnapshot/debug.log</File>
303 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
304 <fileNamePattern>${logDirectory}/dataSnapshot/debug.log.%d{yyyy-MM-dd}</fileNamePattern>
305 </rollingPolicy>
306 <encoder class="org.onap.aai.logging.EcompEncoder">
307 <pattern>${eelfLogPattern}</pattern>
308 </encoder>
309 </appender>
310
311 <appender name="dataSnapshotmetric" class="ch.qos.logback.core.rolling.RollingFileAppender">
312 <filter class="ch.qos.logback.classic.filter.LevelFilter">
313 <level>INFO</level>
314 <onMatch>ACCEPT</onMatch>
315 <onMismatch>DENY</onMismatch>
316 </filter>
317 <File>${logDirectory}/dataSnapshot/metrics.log</File>
318 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
319 <fileNamePattern>${logDirectory}/dataSnapshot/metrics.log.%d{yyyy-MM-dd}</fileNamePattern>
320 </rollingPolicy>
321 <encoder class="org.onap.aai.logging.EcompEncoder">
322 <pattern>${eelfMetricLogPattern}</pattern>
323 </encoder>
324 </appender>
325
326 <!-- DataSnapshot logs ended -->
327
328 <!-- CreateDBSchema logs started -->
329 <appender name="createDBSchema" class="ch.qos.logback.core.rolling.RollingFileAppender">
330 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
331 <level>WARN</level>
332 </filter>
333 <File>${logDirectory}/createDBSchema/error.log</File>
334 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
335 <fileNamePattern>${logDirectory}/createDBSchema/error.log.%d{yyyy-MM-dd}</fileNamePattern>
336 </rollingPolicy>
337 <encoder class="org.onap.aai.logging.EcompEncoder">
338 <pattern>${"eelfErrorLogPattern"}</pattern>
339 </encoder>
340 </appender>
341
342 <appender name="createDBSchemadebug" class="ch.qos.logback.core.rolling.RollingFileAppender">
343 <filter class="ch.qos.logback.classic.filter.LevelFilter">
344 <level>DEBUG</level>
345 <onMatch>ACCEPT</onMatch>
346 <onMismatch>DENY</onMismatch>
347 </filter>
348 <File>${logDirectory}/createDBSchema/debug.log</File>
349 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
350 <fileNamePattern>${logDirectory}/createDBSchema/debug.log.%d{yyyy-MM-dd}</fileNamePattern>
351 </rollingPolicy>
352 <encoder class="org.onap.aai.logging.EcompEncoder">
353 <pattern>${eelfLogPattern}</pattern>
354 </encoder>
355 </appender>
356
357 <appender name="createDBSchemametric" class="ch.qos.logback.core.rolling.RollingFileAppender">
358 <filter class="ch.qos.logback.classic.filter.LevelFilter">
359 <level>INFO</level>
360 <onMatch>ACCEPT</onMatch>
361 <onMismatch>DENY</onMismatch>
362 </filter>
363 <File>${logDirectory}/createDBSchema/metrics.log</File>
364 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
365 <fileNamePattern>${logDirectory}/createDBSchema/metrics.log.%d{yyyy-MM-dd}</fileNamePattern>
366 </rollingPolicy>
367 <encoder class="org.onap.aai.logging.EcompEncoder">
368 <pattern>${eelfMetricLogPattern}</pattern>
369 </encoder>
370 </appender>
371 <!-- CreateDBSchema logs ended -->
372
373 <!-- DataCleanupTasks logs started -->
374 <appender name="dataCleanuperror" class="ch.qos.logback.core.rolling.RollingFileAppender">
375 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
376 <level>WARN</level>
377 </filter>
378 <File>${logDirectory}/misc/error.log</File>
379 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
380 <fileNamePattern>${logDirectory}/misc/error.log.%d{yyyy-MM-dd}</fileNamePattern>
381 </rollingPolicy>
382 <encoder class="org.onap.aai.logging.EcompEncoder">
383 <pattern>${"eelfErrorLogPattern"}</pattern>
384 </encoder>
385 </appender>
386
387 <appender name="dataCleanupdebug" class="ch.qos.logback.core.rolling.RollingFileAppender">
388 <filter class="ch.qos.logback.classic.filter.LevelFilter">
389 <level>DEBUG</level>
390 <onMatch>ACCEPT</onMatch>
391 <onMismatch>DENY</onMismatch>
392 </filter>
393 <File>${logDirectory}/misc/debug.log</File>
394 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
395 <fileNamePattern>${logDirectory}/misc/debug.log.%d{yyyy-MM-dd}</fileNamePattern>
396 </rollingPolicy>
397 <encoder class="org.onap.aai.logging.EcompEncoder">
398 <pattern>${eelfLogPattern}</pattern>
399 </encoder>
400 </appender>
401
402 <appender name="dataCleanupmetric" class="ch.qos.logback.core.rolling.RollingFileAppender">
403 <filter class="ch.qos.logback.classic.filter.LevelFilter">
404 <level>INFO</level>
405 <onMatch>ACCEPT</onMatch>
406 <onMismatch>DENY</onMismatch>
407 </filter>
408 <File>${logDirectory}/misc/metrics.log</File>
409 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
410 <fileNamePattern>${logDirectory}/misc/metrics.log.%d{yyyy-MM-dd}</fileNamePattern>
411 </rollingPolicy>
412 <encoder class="org.onap.aai.logging.EcompEncoder">
413 <pattern>${eelfMetricLogPattern}</pattern>
414 </encoder>
415 </appender>
416 <!-- DataCleanupTasks logs ended -->
417
418 <!-- pullInvData logs started -->
419 <appender name="pullInvData" class="ch.qos.logback.core.rolling.RollingFileAppender">
420 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
421 <level>WARN</level>
422 </filter>
423 <File>${logDirectory}/pullInvData/error.log</File>
424 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
425 <fileNamePattern>${logDirectory}/pullInvData/error.log.%d{yyyy-MM-dd}</fileNamePattern>
426 </rollingPolicy>
427 <encoder class="org.onap.aai.logging.EcompEncoder">
428 <pattern>${"eelfErrorLogPattern"}</pattern>
429 </encoder>
430 </appender>
431
432 <appender name="pullInvDatadebug" class="ch.qos.logback.core.rolling.RollingFileAppender">
433 <filter class="ch.qos.logback.classic.filter.LevelFilter">
434 <level>DEBUG</level>
435 <onMatch>ACCEPT</onMatch>
436 <onMismatch>DENY</onMismatch>
437 </filter>
438 <File>${logDirectory}/pullInvData/debug.log</File>
439 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
440 <fileNamePattern>${logDirectory}/pullInvData/debug.log.%d{yyyy-MM-dd}</fileNamePattern>
441 </rollingPolicy>
442 <encoder class="org.onap.aai.logging.EcompEncoder">
443 <pattern>${eelfLogPattern}</pattern>
444 </encoder>
445 </appender>
446
447 <appender name="pullInvDatametric" class="ch.qos.logback.core.rolling.RollingFileAppender">
448 <filter class="ch.qos.logback.classic.filter.LevelFilter">
449 <level>INFO</level>
450 <onMatch>ACCEPT</onMatch>
451 <onMismatch>DENY</onMismatch>
452 </filter>
453 <File>${logDirectory}/pullInvData/metrics.log</File>
454 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
455 <fileNamePattern>${logDirectory}/pullInvData/metrics.log.%d{yyyy-MM-dd}</fileNamePattern>
456 </rollingPolicy>
457 <encoder class="org.onap.aai.logging.EcompEncoder">
458 <pattern>${eelfMetricLogPattern}</pattern>
459 </encoder>
460 </appender>
461 <!-- pullInvData logs ended -->
462 <!-- DataGrooming logs started -->
463 <appender name="dataExportError" class="ch.qos.logback.core.rolling.RollingFileAppender">
464 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
465 <level>WARN</level>
466 </filter>
467 <File>${logDirectory}/dataExport/error.log</File>
468 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
469 <fileNamePattern>${logDirectory}/dataExport/error.log.%d{yyyy-MM-dd}</fileNamePattern>
470 </rollingPolicy>
471 <encoder class="org.onap.aai.logging.EcompEncoder">
472 <pattern>${eelfErrorLogPattern}</pattern>
473 </encoder>
474 </appender>
475
476 <appender name="dataExportDebug" class="ch.qos.logback.core.rolling.RollingFileAppender">
477 <filter class="ch.qos.logback.classic.filter.LevelFilter">
478 <level>DEBUG</level>
479 <onMatch>ACCEPT</onMatch>
480 <onMismatch>DENY</onMismatch>
481 </filter>
482 <File>${logDirectory}/dataExport/debug.log</File>
483 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
484 <fileNamePattern>${logDirectory}/dataExport/debug.log.%d{yyyy-MM-dd}</fileNamePattern>
485 </rollingPolicy>
486 <encoder class="org.onap.aai.logging.EcompEncoder">
487 <pattern>${eelfLogPattern}</pattern>
488 </encoder>
489 </appender>
490
491 <appender name="dataExportMetric" class="ch.qos.logback.core.rolling.RollingFileAppender">
492 <filter class="ch.qos.logback.classic.filter.LevelFilter">
493 <level>INFO</level>
494 <onMatch>ACCEPT</onMatch>
495 <onMismatch>DENY</onMismatch>
496 </filter>
497 <File>${logDirectory}/dataExport/metrics.log</File>
498 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
499 <fileNamePattern>${logDirectory}/dataExport/metrics.log.%d{yyyy-MM-dd}</fileNamePattern>
500 </rollingPolicy>
501 <encoder class="org.onap.aai.logging.EcompEncoder">
502 <pattern>${eelfMetricLogPattern}</pattern>
503 </encoder>
504 </appender>
505
506 <logger name="org.onap.aai" level="DEBUG" additivity="false">
507 <appender-ref ref="asyncDEBUG" />
508 <appender-ref ref="asyncERROR" />
509 <appender-ref ref="asyncMETRIC" />
510 <appender-ref ref="asyncSANE" />
511 </logger>
512
513 <!-- Spring related loggers -->
514 <logger name="org.springframework" level="WARN" />
515 <logger name="org.springframework.beans" level="WARN" />
516 <logger name="org.springframework.web" level="WARN" />
517 <logger name="com.blog.spring.jms" level="WARN" />
518 <logger name="com.jayway.jsonpath" level="WARN" />
519
520 <!-- AJSC Services (bootstrap services) -->
521 <logger name="ajsc" level="WARN" />
522 <logger name="ajsc.RouteMgmtService" level="WARN" />
523 <logger name="ajsc.ComputeService" level="WARN" />
524 <logger name="ajsc.VandelayService" level="WARN" />
525 <logger name="ajsc.FilePersistenceService" level="WARN" />
526 <logger name="ajsc.UserDefinedJarService" level="WARN" />
527 <logger name="ajsc.UserDefinedBeansDefService" level="WARN" />
528 <logger name="ajsc.LoggingConfigurationService" level="WARN" />
529
530 <!-- AJSC related loggers (DME2 Registration, csi logging, restlet, servlet
531 logging) -->
532 <logger name="org.codehaus.groovy" level="WARN" />
533 <logger name="com.att.scamper" level="WARN" />
534 <logger name="ajsc.utils" level="WARN" />
535 <logger name="ajsc.utils.DME2Helper" level="WARN" />
536 <logger name="ajsc.filters" level="WARN" />
537 <logger name="ajsc.beans.interceptors" level="WARN" />
538 <logger name="ajsc.restlet" level="WARN" />
539 <logger name="ajsc.servlet" level="WARN" />
540 <logger name="com.att.ajsc" level="WARN" />
541 <logger name="com.att.ajsc.csi.logging" level="WARN" />
542 <logger name="com.att.ajsc.filemonitor" level="WARN" />
543 <logger name="com.netflix.loadbalancer" level="WARN" />
544
545 <logger name="org.apache.zookeeper" level="WARN" />
546
547 <!-- Other Loggers that may help troubleshoot -->
548 <logger name="net.sf" level="WARN" />
549 <logger name="org.apache.commons.httpclient" level="WARN" />
550 <logger name="org.apache.commons" level="WARN" />
551 <logger name="org.apache.coyote" level="WARN" />
552 <logger name="org.apache.jasper" level="WARN" />
553
554 <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging.
555 May aid in troubleshooting) -->
556 <logger name="org.apache.camel" level="WARN" />
557 <logger name="org.apache.cxf" level="WARN" />
558 <logger name="org.apache.camel.processor.interceptor" level="WARN" />
559 <logger name="org.apache.cxf.jaxrs.interceptor" level="WARN" />
560 <logger name="org.apache.cxf.service" level="WARN" />
561 <logger name="org.restlet" level="WARN" />
562 <logger name="org.apache.camel.component.restlet" level="WARN" />
563
564 <logger name="org.hibernate.validator" level="WARN" />
565 <logger name="org.hibernate" level="WARN" />
566 <logger name="org.hibernate.ejb" level="OFF" />
567
568 <!-- logback internals logging -->
569 <logger name="ch.qos.logback.classic" level="WARN" />
570 <logger name="ch.qos.logback.core" level="WARN" />
571
572 <logger name="org.eclipse.jetty" level="WARN" />
573
574 <!-- logback jms appenders & loggers definition starts here -->
575 <appender name="auditLogs"
576 class="ch.qos.logback.core.rolling.RollingFileAppender">
577 <filter class="ch.qos.logback.classic.filter.ThresholdFilter" />
578 <file>${logDirectory}/perf-audit/Audit-${lrmRVer}-${lrmRO}-${Pid}.log
579 </file>
580 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
581 <fileNamePattern>${logDirectory}/perf-audit/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
582 </fileNamePattern>
583 <minIndex>1</minIndex>
584 <maxIndex>9</maxIndex>
585 </rollingPolicy>
586 <triggeringPolicy
587 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
588 <maxFileSize>5MB</maxFileSize>
589 </triggeringPolicy>
590 <encoder>
591 <pattern>eelfAuditLogPattern</pattern>
592 </encoder>
593 </appender>
594 <appender name="perfLogs"
595 class="ch.qos.logback.core.rolling.RollingFileAppender">
596 <filter class="ch.qos.logback.classic.filter.ThresholdFilter" />
597 <file>${logDirectory}/perf-audit/Perform-${lrmRVer}-${lrmRO}-${Pid}.log
598 </file>
599 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
600 <fileNamePattern>${logDirectory}/perf-audit/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
601 </fileNamePattern>
602 <minIndex>1</minIndex>
603 <maxIndex>9</maxIndex>
604 </rollingPolicy>
605 <triggeringPolicy
606 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
607 <maxFileSize>5MB</maxFileSize>
608 </triggeringPolicy>
609 <encoder>
610 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
611 </encoder>
612 </appender>
613 <logger name="AuditRecord" level="INFO" additivity="false">
614 <appender-ref ref="auditLogs" />
615 </logger>
616 <logger name="AuditRecord_DirectCall" level="INFO" additivity="false">
617 <appender-ref ref="auditLogs" />
618 </logger>
619 <logger name="PerfTrackerRecord" level="INFO" additivity="false">
620 <appender-ref ref="perfLogs" />
621 </logger>
622 <!-- logback jms appenders & loggers definition ends here -->
623
624 <logger name="org.onap.aai.interceptors.post" level="DEBUG"
625 additivity="false">
626 <appender-ref ref="asynctranslog" />
627 </logger>
628
629 <logger name="org.onap.aai.interceptors.pre.SetLoggingContext" level="DEBUG">
630 <appender-ref ref="asyncAUDIT"/>
631 </logger>
632
633 <logger name="org.onap.aai.interceptors.post.ResetLoggingContext" level="DEBUG">
634 <appender-ref ref="asyncAUDIT"/>
635 </logger>
636
637 <logger name="org.onap.aai.dmaap" level="DEBUG" additivity="false">
638 <appender-ref ref="dmaapAAIEventConsumer" />
639 <appender-ref ref="dmaapAAIEventConsumerDebug" />
640 <appender-ref ref="dmaapAAIEventConsumerMetric" />
641 </logger>
642
643 <logger name="org.onap.aai.datasnapshot" level="DEBUG" additivity="false">
644 <appender-ref ref="dataSnapshot"/>
645 <appender-ref ref="dataSnapshotdebug"/>
646 <appender-ref ref="dataSnapshotmetric"/>
647 <appender-ref ref="STDOUT"/>
648 </logger>
649
650 <logger name="org.onap.aai.datagrooming" level="DEBUG" additivity="false">
651 <appender-ref ref="dataGrooming"/>
652 <appender-ref ref="dataGroomingdebug"/>
653 <appender-ref ref="dataGroomingmetric"/>
654 <appender-ref ref="STDOUT"/>
655 </logger>
656
657 <logger name="org.onap.aai.schema" level="DEBUG" additivity="false">
658 <appender-ref ref="createDBSchema"/>
659 <appender-ref ref="createDBSchemadebug"/>
660 <appender-ref ref="createDBSchemametric"/>
661 </logger>
662
663 <logger name="org.onap.aai.dbgen" level="DEBUG" additivity="false">
664 <appender-ref ref="createDBSchema"/>
665 <appender-ref ref="createDBSchemadebug"/>
666 <appender-ref ref="createDBSchemametric"/>
667 </logger>
668
669 <logger name="org.onap.aai.dbgen.PullInvData" level="DEBUG" additivity="false">
670 <appender-ref ref="pullInvData"/>
671 <appender-ref ref="pullInvDatadebug"/>
672 <appender-ref ref="pullInvDatametric"/>
673 </logger>
674
675 <logger name="org.onap.aai.datacleanup" level="INFO" additivity="false">
676 <appender-ref ref="dataCleanuperror" />
677 <appender-ref ref="dataCleanupdebug" />
678 <appender-ref ref="dataCleanupmetric" />
679 <appender-ref ref="STDOUT"/>
680 </logger>
681 <logger name="org.onap.aai.dataexport" level="DEBUG" additivity="false">
682 <appender-ref ref="dataExportError"/>
683 <appender-ref ref="dataExportDebug"/>
684 <appender-ref ref="dataExportMetric"/>
685 <appender-ref ref="STDOUT"/>
686 </logger>
687 <logger name="org.apache" level="WARN" />
688 <logger name="org.zookeeper" level="WARN" />
689 <logger name="com.netflix" level="WARN" />
690 <logger name="org.janusgraph" level="WARN" />
691 <logger name="com.att.aft.dme2" level="WARN" />
692
693 <!-- ============================================================================ -->
694 <!-- General EELF logger -->
695 <!-- ============================================================================ -->
696 <logger name="com.att.eelf" level="WARN" additivity="false">
697 <appender-ref ref="asyncDEBUG" />
698 <appender-ref ref="asyncERROR" />
699 <appender-ref ref="asyncMETRIC" />
700 </logger>
701
702 <root level="DEBUG">
703 <appender-ref ref="external" />
704 {{ if .Values.global.config.logback.console.enabled }}
705 <appender-ref ref="STDOUT" />
706 {{ end }}
707 </root>
708</configuration>