blob: d466ccf39a6214909e9075c04d00b6566881352d [file] [log] [blame]
Kajur, Harish (vk250x)41a435d2018-09-06 14:44:40 -04001<!--
Harish Venkata Kajurcb1af342019-02-12 23:56:51 -05002 ============LICENSE_START=======================================================
3 org.onap.aai
4 ================================================================================
5 Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 Modifications Copyright © 2018 Amdocs, Bell Canada
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 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ============LICENSE_END=========================================================
18 ECOMP is a trademark and service mark of AT&T Intellectual Property.
Kajur, Harish (vk250x)41a435d2018-09-06 14:44:40 -040019-->
20<configuration scan="true" scanPeriod="60 seconds" debug="false">
Harish Venkata Kajurcb1af342019-02-12 23:56:51 -050021 <statusListener class="ch.qos.logback.core.status.NopStatusListener" />
22 <property resource="application.properties" />
23 <property name="namespace" value="aai-traversal"/>
24 <property name="AJSC_HOME" value="${AJSC_HOME:-.}" />
25 <jmxConfigurator />
26 <property name="logDirectory" value="${AJSC_HOME}/logs" />
27 <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}|%X{statusCode}|%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"/>
28 <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}|%X{statusCode}|%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"/>
29 <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}|%X{statusCode}|%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"/>
30 <!-- <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"/> -->
31 <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"/>
32 <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}|%X{statusCode}|%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"/>
33 <conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" />
34 <conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" />
35 <conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" />
36 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
37 <encoder>
38 <pattern>
39 %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}
40 </pattern>
41 </encoder>
42 </appender>
43 <appender name="SANE" class="ch.qos.logback.core.rolling.RollingFileAppender">
44 <file>${logDirectory}/rest/sane.log</file>
45 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
46 <fileNamePattern>${logDirectory}/rest/sane.log.%d{yyyy-MM-dd}</fileNamePattern>
47 </rollingPolicy>
48 <encoder>
49 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n
50 </pattern>
51 </encoder>
52 </appender>
53 <appender name="asyncSANE" class="ch.qos.logback.classic.AsyncAppender">
54 <queueSize>1000</queueSize>
55 <includeCallerData>true</includeCallerData>
56 <appender-ref ref="SANE" />
57 </appender>
58 <appender name="METRIC"
59 class="ch.qos.logback.core.rolling.RollingFileAppender">
60 <filter class="ch.qos.logback.classic.filter.LevelFilter">
61 <level>INFO</level>
62 <onMatch>ACCEPT</onMatch>
63 <onMismatch>DENY</onMismatch>
64 </filter>
65 <file>${logDirectory}/rest/metrics.log</file>
66 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
67 <fileNamePattern>${logDirectory}/rest/metrics.log.%d{yyyy-MM-dd}
68 </fileNamePattern>
69 </rollingPolicy>
70 <encoder class="org.onap.aai.logging.EcompEncoder">
71 <pattern>${eelfMetricLogPattern}</pattern>
72 </encoder>
73 </appender>
74 <appender name="asyncMETRIC" class="ch.qos.logback.classic.AsyncAppender">
75 <queueSize>1000</queueSize>
76 <includeCallerData>true</includeCallerData>
77 <appender-ref ref="METRIC" />
78 </appender>
79 <appender name="DEBUG"
80 class="ch.qos.logback.core.rolling.RollingFileAppender">
81 <filter class="ch.qos.logback.classic.filter.LevelFilter">
82 <level>DEBUG</level>
83 <onMatch>ACCEPT</onMatch>
84 <onMismatch>DENY</onMismatch>
85 </filter>
86 <file>${logDirectory}/rest/debug.log</file>
87 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
88 <fileNamePattern>${logDirectory}/rest/debug.log.%d{yyyy-MM-dd}
89 </fileNamePattern>
90 </rollingPolicy>
91 <encoder class="org.onap.aai.logging.EcompEncoder">
92 <pattern>${eelfLogPattern}</pattern>
93 </encoder>
94 </appender>
95 <appender name="asyncDEBUG" class="ch.qos.logback.classic.AsyncAppender">
96 <queueSize>1000</queueSize>
97 <includeCallerData>true</includeCallerData>
98 <appender-ref ref="DEBUG" />
99 </appender>
100 <appender name="ERROR"
101 class="ch.qos.logback.core.rolling.RollingFileAppender">
102 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
103 <level>WARN</level>
104 </filter>
105 <file>${logDirectory}/rest/error.log</file>
106 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
107 <fileNamePattern>${logDirectory}/rest/error.log.%d{yyyy-MM-dd}
108 </fileNamePattern>
109 </rollingPolicy>
110 <encoder class="org.onap.aai.logging.EcompEncoder">
111 <pattern>${eelfErrorLogPattern}</pattern>
112 </encoder>
113 </appender>
114 <appender name="asyncERROR" class="ch.qos.logback.classic.AsyncAppender">
115 <queueSize>1000</queueSize>
116 <includeCallerData>true</includeCallerData>
117 <appender-ref ref="ERROR" />
118 </appender>
119 <appender name="AUDIT"
120 class="ch.qos.logback.core.rolling.RollingFileAppender">
121 <file>${logDirectory}/rest/audit.log</file>
122 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
123 <fileNamePattern>${logDirectory}/rest/audit.log.%d{yyyy-MM-dd}
124 </fileNamePattern>
125 </rollingPolicy>
126 <encoder class="org.onap.aai.logging.EcompEncoder">
127 <pattern>${eelfAuditLogPattern}</pattern>
128 </encoder>
129 </appender>
130 <appender name="asyncAUDIT" class="ch.qos.logback.classic.AsyncAppender">
131 <queueSize>1000</queueSize>
132 <includeCallerData>true</includeCallerData>
133 <appender-ref ref="AUDIT" />
134 </appender>
135 <appender name="translog"
136 class="ch.qos.logback.core.rolling.RollingFileAppender">
137 <filter class="ch.qos.logback.classic.filter.LevelFilter">
138 <level>DEBUG</level>
139 <onMatch>ACCEPT</onMatch>
140 <onMismatch>DENY</onMismatch>
141 </filter>
142 <file>${logDirectory}/rest/translog.log</file>
143 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
144 <fileNamePattern>${logDirectory}/rest/translog.log.%d{yyyy-MM-dd}
145 </fileNamePattern>
146 </rollingPolicy>
147 <encoder class="org.onap.aai.logging.EcompEncoder">
148 <pattern>${eelfTransLogPattern}</pattern>
149 </encoder>
150 </appender>
151 <appender name="asynctranslog" class="ch.qos.logback.classic.AsyncAppender">
152 <queueSize>1000</queueSize>
153 <includeCallerData>true</includeCallerData>
154 <appender-ref ref="translog" />
155 </appender>
156 <appender name="dmaapAAIEventConsumer"
157 class="ch.qos.logback.core.rolling.RollingFileAppender">
158 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
159 <level>WARN</level>
160 </filter>
161 <File>${logDirectory}/dmaapAAIEventConsumer/error.log</File>
162 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
163 <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/error.log.%d{yyyy-MM-dd}
164 </fileNamePattern>
165 </rollingPolicy>
166 <encoder class="org.onap.aai.logging.EcompEncoder">
167 <pattern>${eelfLogPattern}</pattern>
168 </encoder>
169 </appender>
170 <appender name="dmaapAAIEventConsumerDebug"
171 class="ch.qos.logback.core.rolling.RollingFileAppender">
172 <filter class="ch.qos.logback.classic.filter.LevelFilter">
173 <level>DEBUG</level>
174 <onMatch>ACCEPT</onMatch>
175 <onMismatch>DENY</onMismatch>
176 </filter>
177 <File>${logDirectory}/dmaapAAIEventConsumer/debug.log</File>
178 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
179 <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/debug.log.%d{yyyy-MM-dd}
180 </fileNamePattern>
181 </rollingPolicy>
182 <encoder class="org.onap.aai.logging.EcompEncoder">
183 <pattern>${eelfLogPattern}</pattern>
184 </encoder>
185 </appender>
186 <appender name="dmaapAAIEventConsumerMetric"
187 class="ch.qos.logback.core.rolling.RollingFileAppender">
188 <filter class="ch.qos.logback.classic.filter.LevelFilter">
189 <level>INFO</level>
190 <onMatch>ACCEPT</onMatch>
191 <onMismatch>DENY</onMismatch>
192 </filter>
193 <File>${logDirectory}/dmaapAAIEventConsumer/metrics.log</File>
194 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
195 <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/metrics.log.%d{yyyy-MM-dd}
196 </fileNamePattern>
197 </rollingPolicy>
198 <encoder class="org.onap.aai.logging.EcompEncoder">
199 <pattern>${eelfMetricLogPattern}</pattern>
200 </encoder>
201 </appender>
202 <appender name="external"
203 class="ch.qos.logback.core.rolling.RollingFileAppender">
204 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
205 <level>WARN</level>
206 </filter>
207 <file>${logDirectory}/external/external.log</file>
208 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
209 <fileNamePattern>${logDirectory}/external/external.log.%d{yyyy-MM-dd}
210 </fileNamePattern>
211 </rollingPolicy>
212 <encoder class="org.onap.aai.logging.EcompEncoder">
213 <pattern>${eelfLogPattern}</pattern>
214 </encoder>
215 </appender>
216 <logger name="org.onap.aai" level="DEBUG" additivity="false">
217 <appender-ref ref="asyncDEBUG" />
218 <appender-ref ref="asyncERROR" />
219 <appender-ref ref="asyncMETRIC" />
220 <appender-ref ref="asyncSANE" />
221 <appender-ref ref="STDOUT" />
222 </logger>
223
224 <!-- Spring related loggers -->
225 <logger name="org.springframework" level="WARN" />
226 <logger name="org.springframework.beans" level="WARN" />
227 <logger name="org.springframework.web" level="WARN" />
228 <logger name="com.blog.spring.jms" level="WARN" />
229 <logger name="com.jayway.jsonpath" level="WARN" />
230
231 <logger name="ch.qos.logback.classic" level="WARN" />
232 <logger name="ch.qos.logback.core" level="WARN" />
233 <logger name="org.eclipse.jetty" level="WARN" />
234
235 <logger name="org.onap.aai.interceptors.post" level="DEBUG"
236 additivity="false">
237 <appender-ref ref="asynctranslog" />
238 </logger>
239 <logger name="org.onap.aai.interceptors.pre.SetLoggingContext" level="DEBUG">
240 <appender-ref ref="asyncAUDIT"/>
241 </logger>
242 <logger name="org.onap.aai.interceptors.post.ResetLoggingContext" level="DEBUG">
243 <appender-ref ref="asyncAUDIT"/>
244 </logger>
245 <logger name="org.onap.aai.dmaap" level="DEBUG" additivity="false">
246 <appender-ref ref="dmaapAAIEventConsumer" />
247 <appender-ref ref="dmaapAAIEventConsumerDebug" />
248 <appender-ref ref="dmaapAAIEventConsumerMetric" />
249 </logger>
250 <logger name="org.apache" level="OFF" />
251 <logger name="org.zookeeper" level="OFF" />
252 <logger name="com.thinkaurelius" level="WARN" />
253 <logger name="com.att.aft.dme2" level="WARN" />
254 <!-- ============================================================================ -->
255 <!-- General EELF logger -->
256 <!-- ============================================================================ -->
257 <logger name="com.att.eelf" level="WARN" additivity="false">
258 <appender-ref ref="asyncDEBUG" />
259 <appender-ref ref="asyncERROR" />
260 <appender-ref ref="asyncMETRIC" />
261 </logger>
262 <root level="DEBUG">
263 <appender-ref ref="external" />
264 {{if .Values.global.config.logback.console.enabled}}
265 <appender-ref ref="STDOUT" />
266 {{ end }}
267 </root>
Kajur, Harish (vk250x)41a435d2018-09-06 14:44:40 -0400268</configuration>