blob: ffedde74cffbb9c6fddf5dbfb2f0b0b3c1fea49f [file] [log] [blame]
Varun Gudisenaacc3ce02017-08-31 10:56:56 -05001<!--
2 ============LICENSE_START=======================================================
3 org.onap.dmaap
4 ================================================================================
5 Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
11
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
19 ECOMP is a trademark and service mark of AT&T Intellectual Property.
20
21 -->
22<configuration scan="true" scanPeriod="3 seconds" debug="false">
23 <contextName>${module.ajsc.namespace.name}</contextName>
24 <jmxConfigurator />
25 <property name="logDirectory" value="${AJSC_HOME}/log" />
26 <!-- Example evaluator filter applied against console appender -->
27 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
28 <filter class="ch.qos.logback.classic.filter.LevelFilter">
29 <!-- <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> -->
30 <level>ERROR</level>
31 <onMatch>ACCEPT</onMatch>
32 <onMismatch>DENY</onMismatch>
33 </filter>
34 <encoder>
35 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n
36 </pattern>
37 </encoder>
38 </appender>
39
40 <appender name="INFO"
su622b6c881fc2018-03-22 17:39:23 -040041 class="ch.qos.logback.core.ConsoleAppender">
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050042 <filter class="ch.qos.logback.classic.filter.LevelFilter">
43 <level>INFO</level>
44 <onMatch>ACCEPT</onMatch>
45 <onMismatch>DENY</onMismatch>
46 </filter>
su622b6c881fc2018-03-22 17:39:23 -040047 <!-- <file>${logDirectory}/Info.log</file>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050048 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
49 <fileNamePattern>${logDirectory}/Info-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
50 </fileNamePattern>
51 <minIndex>1</minIndex>
52 <maxIndex>9</maxIndex>
53 </rollingPolicy>
54 <triggeringPolicy
55 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
56 <maxFileSize>500MB</maxFileSize>
57 </triggeringPolicy>
58 <encoder>
59 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
su622b6c881fc2018-03-22 17:39:23 -040060 </encoder> -->
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050061 </appender>
62
su622b6c881fc2018-03-22 17:39:23 -040063 <appender name="DEBUG"
64 class="ch.qos.logback.core.ConsoleAppender">
65 <!-- <filter class="ch.qos.logback.classic.filter.LevelFilter">
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050066 <level>DEBUG</level>
67 <onMatch>ACCEPT</onMatch>
68 <onMismatch>DENY</onMismatch>
69 </filter>
70 <file>${logDirectory}/Debug.log</file>
71 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
72 <fileNamePattern>${logDirectory}/Debug-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
73 </fileNamePattern>
74 <minIndex>1</minIndex>
75 <maxIndex>9</maxIndex>
76 </rollingPolicy>
77 <triggeringPolicy
78 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
79 <maxFileSize>500MB</maxFileSize>
su622b6c881fc2018-03-22 17:39:23 -040080 </triggeringPolicy> -->
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050081 <encoder>
82 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
83 </encoder>
su622b6c881fc2018-03-22 17:39:23 -040084 </appender>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050085
86 <appender name="ERROR"
su622b6c881fc2018-03-22 17:39:23 -040087 class="ch.qos.logback.core.ConsoleAppender">
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050088 <filter class="ch.qos.logback.classic.filter.LevelFilter">
89 <level>ERROR</level>
90 <onMatch>ACCEPT</onMatch>
91 <onMismatch>DENY</onMismatch>
92 </filter>
su622b6c881fc2018-03-22 17:39:23 -040093 <!--<file>${logDirectory}/Error.log</file>
94 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050095 <fileNamePattern>${logDirectory}/Error-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
96 </fileNamePattern>
97 <minIndex>1</minIndex>
98 <maxIndex>9</maxIndex>
99 </rollingPolicy>
100 <triggeringPolicy
101 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
102 <maxFileSize>500MB</maxFileSize>
su622b6c881fc2018-03-22 17:39:23 -0400103 </triggeringPolicy> -->
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500104 <encoder>
105 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n"</pattern> -->
106 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
107 </encoder>
108 </appender>
109
110
111 <!-- Msgrtr related loggers -->
sunil unnava357b7482018-10-24 15:20:01 -0400112 <logger name="org.onap.dmaap.dmf.mr.service" level="INFO" />
113 <logger name="org.onap.dmaap.dmf.mr.service.impl" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500114
sunil unnava357b7482018-10-24 15:20:01 -0400115 <logger name="org.onap.dmaap.dmf.mr.resources" level="INFO" />
116 <logger name="org.onap.dmaap.dmf.mr.resources.streamReaders" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500117
sunil unnava357b7482018-10-24 15:20:01 -0400118 <logger name="org.onap.dmaap.dmf.mr.backends" level="INFO" />
119 <logger name="org.onap.dmaap.dmf.mr.backends.kafka" level="INFO" />
120 <logger name="org.onap.dmaap.dmf.mr.backends.memory" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500121
sunil unnava357b7482018-10-24 15:20:01 -0400122 <logger name="org.onap.dmaap.dmf.mr.beans" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500123
sunil unnava357b7482018-10-24 15:20:01 -0400124 <logger name="org.onap.dmaap.dmf.mr.constants" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500125
sunil unnava357b7482018-10-24 15:20:01 -0400126 <logger name="org.onap.dmaap.dmf.mr.exception" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500127
sunil unnava357b7482018-10-24 15:20:01 -0400128 <logger name="org.onap.dmaap.dmf.mr.listener" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500129
sunil unnava357b7482018-10-24 15:20:01 -0400130 <logger name="org.onap.dmaap.dmf.mr.metabroker" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500131
sunil unnava357b7482018-10-24 15:20:01 -0400132 <logger name="org.onap.dmaap.dmf.mr.metrics.publisher" level="INFO" />
133 <logger name="org.onap.dmaap.dmf.mr.metrics.publisher.impl" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500134
135
136
sunil unnava357b7482018-10-24 15:20:01 -0400137 <logger name="org.onap.dmaap.dmf.mr.security" level="INFO" />
138 <logger name="org.onap.dmaap.dmf.mr.security.impl" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500139
sunil unnava357b7482018-10-24 15:20:01 -0400140 <logger name="org.onap.dmaap.dmf.mr.transaction" level="INFO" />
sunil unnava3563bf12018-09-25 12:47:28 -0400141 <logger name="com.att.dmf.mr.transaction.impl" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500142
sunil unnava357b7482018-10-24 15:20:01 -0400143 <logger name="org.onap.dmaap.dmf.mr.metabroker" level="INFO" />
144 <logger name="org.onap.dmaap.dmf.mr.metabroker" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500145
sunil unnava357b7482018-10-24 15:20:01 -0400146 <logger name="org.onap.dmaap.dmf.mr.utils" level="INFO" />
147 <logger name="org.onap.dmaap.mr.filter" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500148
149 <!--<logger name="com.att.nsa.cambria.*" level="INFO" />-->
150
151 <!-- Msgrtr loggers in ajsc -->
sunil unnava357b7482018-10-24 15:20:01 -0400152 <logger name="org.onap.dmaap.service" level="INFO" />
153 <logger name="org.onap.dmaap" level="INFO" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500154
155
156 <!-- Spring related loggers -->
sunil unnava3563bf12018-09-25 12:47:28 -0400157 <logger name="org.springframework" level="WARN" additivity="false"/>
158 <logger name="org.springframework.beans" level="WARN" additivity="false"/>
159 <logger name="org.springframework.web" level="WARN" additivity="false" />
160 <logger name="com.blog.spring.jms" level="WARN" additivity="false" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500161
162 <!-- AJSC Services (bootstrap services) -->
sunil unnava3563bf12018-09-25 12:47:28 -0400163 <logger name="ajsc" level="WARN" additivity="false"/>
164 <logger name="ajsc.RouteMgmtService" level="INFO" additivity="false"/>
165 <logger name="ajsc.ComputeService" level="INFO" additivity="false" />
166 <logger name="ajsc.VandelayService" level="WARN" additivity="false"/>
167 <logger name="ajsc.FilePersistenceService" level="WARN" additivity="false"/>
168 <logger name="ajsc.UserDefinedJarService" level="WARN" additivity="false" />
169 <logger name="ajsc.UserDefinedBeansDefService" level="WARN" additivity="false" />
170 <logger name="ajsc.LoggingConfigurationService" level="WARN" additivity="false" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500171
172 <!-- AJSC related loggers (DME2 Registration, csi logging, restlet, servlet
173 logging) -->
sunil unnava3563bf12018-09-25 12:47:28 -0400174 <logger name="ajsc.utils" level="WARN" additivity="false"/>
175 <logger name="ajsc.utils.DME2Helper" level="INFO" additivity="false" />
176 <logger name="ajsc.filters" level="DEBUG" additivity="false" />
177 <logger name="ajsc.beans.interceptors" level="DEBUG" additivity="false" />
178 <logger name="ajsc.restlet" level="DEBUG" additivity="false" />
179 <logger name="ajsc.servlet" level="DEBUG" additivity="false" />
180 <logger name="com.att" level="WARN" additivity="false" />
181 <logger name="com.att.ajsc.csi.logging" level="WARN" additivity="false" />
182 <logger name="com.att.ajsc.filemonitor" level="WARN" additivity="false"/>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500183
sunil unnava3563bf12018-09-25 12:47:28 -0400184 <logger name="com.att.nsa.dmaap.util" level="INFO" additivity="false"/>
185 <logger name="com.att.cadi.filter" level="INFO" additivity="false" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500186
187
188 <!-- Other Loggers that may help troubleshoot -->
sunil unnava3563bf12018-09-25 12:47:28 -0400189 <logger name="net.sf" level="WARN" additivity="false" />
190 <logger name="org.apache.commons.httpclient" level="WARN" additivity="false"/>
191 <logger name="org.apache.commons" level="WARN" additivity="false" />
192 <logger name="org.apache.coyote" level="WARN" additivity="false"/>
193 <logger name="org.apache.jasper" level="WARN" additivity="false"/>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500194
195 <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging.
196 May aid in troubleshooting) -->
sunil unnava3563bf12018-09-25 12:47:28 -0400197 <logger name="org.apache.camel" level="WARN" additivity="false" />
198 <logger name="org.apache.cxf" level="WARN" additivity="false" />
199 <logger name="org.apache.camel.processor.interceptor" level="WARN" additivity="false"/>
200 <logger name="org.apache.cxf.jaxrs.interceptor" level="WARN" additivity="false" />
201 <logger name="org.apache.cxf.service" level="WARN" additivity="false" />
202 <logger name="org.restlet" level="DEBUG" additivity="false" />
203 <logger name="org.apache.camel.component.restlet" level="DEBUG" additivity="false" />
204 <logger name="org.apache.kafka" level="DEBUG" additivity="false" />
205 <logger name="org.apache.zookeeper" level="INFO" additivity="false" />
206 <logger name="org.I0Itec.zkclient" level="DEBUG" additivity="false" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500207
208 <!-- logback internals logging -->
sunil unnava3563bf12018-09-25 12:47:28 -0400209 <logger name="ch.qos.logback.classic" level="INFO" additivity="false"/>
210 <logger name="ch.qos.logback.core" level="INFO" additivity="false" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500211
212 <!-- logback jms appenders & loggers definition starts here -->
213 <!-- logback jms appenders & loggers definition starts here -->
214 <appender name="auditLogs"
su622b6c881fc2018-03-22 17:39:23 -0400215 class="ch.qos.logback.core.ConsoleAppender">
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500216 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
217 </filter>
su622b6c881fc2018-03-22 17:39:23 -0400218 <!-- <file>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.log</file>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500219 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
220 <fileNamePattern>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
221 </fileNamePattern>
222 <minIndex>1</minIndex>
223 <maxIndex>9</maxIndex>
224 </rollingPolicy>
225 <triggeringPolicy
226 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
227 <maxFileSize>500MB</maxFileSize>
su622b6c881fc2018-03-22 17:39:23 -0400228 </triggeringPolicy> -->
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500229 <encoder>
230 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
231 </encoder>
232 </appender>
233 <appender name="perfLogs"
su622b6c881fc2018-03-22 17:39:23 -0400234 class="ch.qos.logback.core.ConsoleAppender">
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500235 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
236 </filter>
su622b6c881fc2018-03-22 17:39:23 -0400237 <!-- <file>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.log</file>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500238 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
239 <fileNamePattern>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
240 </fileNamePattern>
241 <minIndex>1</minIndex>
242 <maxIndex>9</maxIndex>
243 </rollingPolicy>
244 <triggeringPolicy
245 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
246 <maxFileSize>500MB</maxFileSize>
su622b6c881fc2018-03-22 17:39:23 -0400247 </triggeringPolicy> -->
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500248 <encoder>
249 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
250 </encoder>
251 </appender>
252<!-- <if condition='property("JMS_BROKER").contains("WMQ")'>
253 <then>
254 <appender name="Audit-Record-Queue" class="ajsc.JMSQueueAppender">
255 <param name="InitialContextFactoryName" value="${JMS_WMQ_INITIAL_CONNECTION_FACTORY_NAME}" />
256 <param name="ProviderURL" value="${JMS_WMQ_PROVIDER_URL}" />
257 <param name="DestinationName" value="${JMS_WMQ_AUDIT_DESTINATION_NAME}" />
258 <param name="ConnectionFactoryName" value="${JMS_WMQ_CONNECTION_FACTORY_NAME}" />
259 </appender>
260 <appender name="Performance-Tracker-Queue" class="ajsc.JMSQueueAppender">
261 <param name="InitialContextFactoryName" value="${JMS_WMQ_INITIAL_CONNECTION_FACTORY_NAME}" />
262 <param name="ProviderURL" value="${JMS_WMQ_PROVIDER_URL}" />
263 <param name="DestinationName" value="${JMS_WMQ_PERF_DESTINATION_NAME}" />
264 <param name="ConnectionFactoryName" value="${JMS_WMQ_CONNECTION_FACTORY_NAME}" />
265 </appender>
266 </then>
267 <else> logback jms appenders definition starts here
268 <appender name="Audit-Record-Queue" class="ajsc.JMSQueueAppender">
269 <param name="InitialContextFactoryName"
270 value="com.tibco.tibjms.naming.TibjmsInitialContextFactory" />
271 <param name="ProviderURL" value="${JMS_TIBCO_PROVIDER_URL}" />
272 <param name="userName" value="${JMS_LOGGER_USER_NAME}" />
273 <param name="password" value="${JMS_LOGGER_PASSWORD}" />
274 <QueueBindingName>${JMS_LOGGER_AUDIT_QUEUE_BINDING}
275 </QueueBindingName>
276 </appender>
277 <appender name="Performance-Tracker-Queue" class="ajsc.JMSQueueAppender">
278 <param name="InitialContextFactoryName"
279 value="com.tibco.tibjms.naming.TibjmsInitialContextFactory" />
280 <param name="ProviderURL" value="${JMS_TIBCO_PROVIDER_URL}" />
281 <param name="userName" value="${JMS_LOGGER_USER_NAME}" />
282 <param name="password" value="${JMS_LOGGER_PASSWORD}" />
283 <QueueBindingName>${JMS_LOGGER_PERF_QUEUE_BINDING}
284 </QueueBindingName>
285 </appender>
286 </else>
287 </if> -->
288 <appender name="ASYNC-audit" class="ch.qos.logback.classic.AsyncAppender">
289 <queueSize>1000</queueSize>
290 <discardingThreshold>0</discardingThreshold>
291 <appender-ref ref="Audit-Record-Queue" />
292 </appender>
293
294 <logger name="AuditRecord" level="INFO" additivity="FALSE">
su622b6c881fc2018-03-22 17:39:23 -0400295 <appender-ref ref="STDOUT" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500296 </logger>
297 <logger name="AuditRecord_DirectCall" level="INFO" additivity="FALSE">
su622b6c881fc2018-03-22 17:39:23 -0400298 <appender-ref ref="STDOUT" />
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500299 </logger>
300 <appender name="ASYNC-perf" class="ch.qos.logback.classic.AsyncAppender">
301 <queueSize>1000</queueSize>
302 <discardingThreshold>0</discardingThreshold>
303 <appender-ref ref="Performance-Tracker-Queue" />
304 </appender>
305 <logger name="PerfTrackerRecord" level="INFO" additivity="FALSE">
306 <appender-ref ref="ASYNC-perf" />
307 <appender-ref ref="perfLogs" />
308 </logger>
309 <!-- logback jms appenders & loggers definition ends here -->
310
311 <root level="DEBUG">
312 <appender-ref ref="DEBUG" />
313 <appender-ref ref="ERROR" />
314 <appender-ref ref="INFO" />
315 <appender-ref ref="STDOUT" />
316 </root>
317
318</configuration>