blob: fb8d8a53bf7d4ac38511f4efa57437e87a87ed9b [file] [log] [blame]
BorislavGb2b99182017-10-03 15:40:55 +03001<configuration debug="false" scan="true" scanPeriod="3 seconds">
2 <contextName>${module.ajsc.namespace.name}</contextName>
3 <jmxConfigurator />
4 <property name="logDir" value="/var/log/onap" />
5 <property name="componentName" value="aai"></property>
6 <property name="restLogDirectory" value="${logDir}/${componentName}/rest" />
7 <property name="dmaapLogDirectory" value="${logDir}/${componentName}/dmaapAAIEventConsumer" />
8 <property name="perfLogsDirectory" value="${logDir}/${componentName}/perf-audit" />
9 <!-- default eelf log file names -->
10 <property name="errorLogName" value="error" />
11 <property name="metricsLogName" value="metrics" />
12 <property name="auditLogName" value="audit" />
13 <property name="debugLogName" value="debug" />
14 <property name="queueSize" value="256" />
15 <property name="maxFileSize" value="50MB" />
16 <property name="maxHistory" value="30" />
17 <property name="totalSizeCap" value="10GB" />
18 <property name="pattern" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}\t[%thread]\t%-5level\t%logger\t%replace(%replace(%replace(%mdc){'\t','\\\\t'}){', ','\t'}){'\n', '\\\\n'}\t%replace(%replace(%msg){'\n', '\\\\n'}){'\t','\\\\t'}%n" />
19 <appender class="ch.qos.logback.core.ConsoleAppender" name="STDOUT">
20 <filter class="ch.qos.logback.classic.filter.LevelFilter">
21 <level>ERROR</level>
22 <onMatch>ACCEPT</onMatch>
23 <onMismatch>DENY</onMismatch>
24 </filter>
25 <encoder>
26 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n</pattern>
27 </encoder>
28 </appender>
29 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="SANE">
30 <file>${restLogDirectory}/sane.log</file>
31 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
32 <fileNamePattern>${restLogDirectory}/sane.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
33 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
34 <maxFileSize>${maxFileSize}</maxFileSize>
35 </timeBasedFileNamingAndTriggeringPolicy>
36 <maxHistory>${maxHistory}</maxHistory>
37 <totalSizeCap>${totalSizeCap}</totalSizeCap>
38 </rollingPolicy>
39 <encoder>
40 <pattern>${pattern}</pattern>
41 </encoder>
42 </appender>
43 <appender class="ch.qos.logback.classic.AsyncAppender" name="asyncSANE">
44 <queueSize>${queueSize}</queueSize>
45 <includeCallerData>true</includeCallerData>
46 <appender-ref ref="SANE" />
47 </appender>
48 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="METRIC">
49 <filter class="ch.qos.logback.classic.filter.LevelFilter">
50 <level>INFO</level>
51 <onMatch>ACCEPT</onMatch>
52 <onMismatch>DENY</onMismatch>
53 </filter>
54 <file>${restLogDirectory}/${metricsLogName}.log</file>
55 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
56 <fileNamePattern>${restLogDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
57 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
58 <maxFileSize>${maxFileSize}</maxFileSize>
59 </timeBasedFileNamingAndTriggeringPolicy>
60 <maxHistory>${maxHistory}</maxHistory>
61 <totalSizeCap>${totalSizeCap}</totalSizeCap>
62 </rollingPolicy>
Michael O'Brien49fb6032017-10-16 01:05:32 -040063 <encoder class="org.onap.aai.logging.EcompEncoder">
BorislavGb2b99182017-10-03 15:40:55 +030064 <pattern>${pattern}</pattern>
65 </encoder>
66 </appender>
67 <appender class="ch.qos.logback.classic.AsyncAppender" name="asyncMETRIC">
68 <queueSize>${queueSize}</queueSize>
69 <includeCallerData>true</includeCallerData>
70 <appender-ref ref="METRIC" />
71 </appender>
72 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="DEBUG">
73 <filter class="ch.qos.logback.classic.filter.LevelFilter">
74 <level>DEBUG</level>
75 <onMatch>ACCEPT</onMatch>
76 <onMismatch>DENY</onMismatch>
77 </filter>
78 <file>${restLogDirectory}/${debugLogName}.log</file>
79 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
80 <fileNamePattern>${restLogDirectory}/${debugLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
81 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
82 <maxFileSize>${maxFileSize}</maxFileSize>
83 </timeBasedFileNamingAndTriggeringPolicy>
84 <maxHistory>${maxHistory}</maxHistory>
85 <totalSizeCap>${totalSizeCap}</totalSizeCap>
86 </rollingPolicy>
Michael O'Brien49fb6032017-10-16 01:05:32 -040087 <encoder class="org.onap.aai.logging.EcompEncoder">
BorislavGb2b99182017-10-03 15:40:55 +030088 <pattern>${pattern}</pattern>
89 </encoder>
90 </appender>
91 <appender class="ch.qos.logback.classic.AsyncAppender" name="asyncDEBUG">
92 <queueSize>${queueSize}</queueSize>
93 <includeCallerData>true</includeCallerData>
94 <appender-ref ref="DEBUG" />
95 </appender>
96 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="ERROR">
97 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
98 <level>WARN</level>
99 </filter>
100 <file>${restLogDirectory}/${errorLogName}.log</file>
101 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
102 <fileNamePattern>${restLogDirectory}/${errorLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
103 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
104 <maxFileSize>${maxFileSize}</maxFileSize>
105 </timeBasedFileNamingAndTriggeringPolicy>
106 <maxHistory>${maxHistory}</maxHistory>
107 <totalSizeCap>${totalSizeCap}</totalSizeCap>
108 </rollingPolicy>
Michael O'Brien49fb6032017-10-16 01:05:32 -0400109 <encoder class="org.onap.aai.logging.EcompEncoder">
BorislavGb2b99182017-10-03 15:40:55 +0300110 <pattern>${pattern}</pattern>
111 </encoder>
112 </appender>
113 <appender class="ch.qos.logback.classic.AsyncAppender" name="asyncERROR">
114 <queueSize>${queueSize}</queueSize>
115 <includeCallerData>true</includeCallerData>
116 <appender-ref ref="ERROR" />
117 </appender>
118 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="AUDIT">
119 <file>${restLogDirectory}/${auditLogName}.log</file>
120 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
121 <fileNamePattern>${restLogDirectory}/${auditLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
122 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
123 <maxFileSize>${maxFileSize}</maxFileSize>
124 </timeBasedFileNamingAndTriggeringPolicy>
125 <maxHistory>${maxHistory}</maxHistory>
126 <totalSizeCap>${totalSizeCap}</totalSizeCap>
127 </rollingPolicy>
Michael O'Brien49fb6032017-10-16 01:05:32 -0400128 <encoder class="org.onap.aai.logging.EcompEncoder">
BorislavGb2b99182017-10-03 15:40:55 +0300129 <pattern>${pattern}</pattern>
130 </encoder>
131 </appender>
132 <appender class="ch.qos.logback.classic.AsyncAppender" name="asyncAUDIT">
133 <queueSize>${queueSize}</queueSize>
134 <includeCallerData>true</includeCallerData>
135 <appender-ref ref="AUDIT" />
136 </appender>
137 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="translog">
138 <filter class="ch.qos.logback.classic.filter.LevelFilter">
139 <level>DEBUG</level>
140 <onMatch>ACCEPT</onMatch>
141 <onMismatch>DENY</onMismatch>
142 </filter>
143 <file>${restLogDirectory}/translog.log</file>
144 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
145 <fileNamePattern>${restLogDirectory}/translog.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
146 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
147 <maxFileSize>${maxFileSize}</maxFileSize>
148 </timeBasedFileNamingAndTriggeringPolicy>
149 <maxHistory>${maxHistory}</maxHistory>
150 <totalSizeCap>${totalSizeCap}</totalSizeCap>
151 </rollingPolicy>
Michael O'Brien49fb6032017-10-16 01:05:32 -0400152 <encoder class="org.onap.aai.logging.EcompEncoder">
BorislavGb2b99182017-10-03 15:40:55 +0300153 <pattern>${pattern}</pattern>
154 </encoder>
155 </appender>
156 <appender class="ch.qos.logback.classic.AsyncAppender" name="asynctranslog">
157 <queueSize>${queueSize}</queueSize>
158 <includeCallerData>true</includeCallerData>
159 <appender-ref ref="translog" />
160 </appender>
161 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="dmaapAAIEventConsumer">
162 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
163 <level>WARN</level>
164 </filter>
165 <File>${dmaapLogDirectory}/${errorLogName}.log</File>
166 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
167 <fileNamePattern>${dmaapLogDirectory}/${errorLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
168 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
169 <maxFileSize>${maxFileSize}</maxFileSize>
170 </timeBasedFileNamingAndTriggeringPolicy>
171 <maxHistory>${maxHistory}</maxHistory>
172 <totalSizeCap>${totalSizeCap}</totalSizeCap>
173 </rollingPolicy>
Michael O'Brien49fb6032017-10-16 01:05:32 -0400174 <encoder class="org.onap.aai.logging.EcompEncoder">
BorislavGb2b99182017-10-03 15:40:55 +0300175 <pattern>${pattern}</pattern>
176 </encoder>
177 </appender>
178 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="dmaapAAIEventConsumerDebug">
179 <filter class="ch.qos.logback.classic.filter.LevelFilter">
180 <level>DEBUG</level>
181 <onMatch>ACCEPT</onMatch>
182 <onMismatch>DENY</onMismatch>
183 </filter>
184 <File>${dmaapLogDirectory}/${debugLogName}.log</File>
185 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
186 <fileNamePattern>${dmaapLogDirectory}/${debugLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
187 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
188 <maxFileSize>${maxFileSize}</maxFileSize>
189 </timeBasedFileNamingAndTriggeringPolicy>
190 <maxHistory>${maxHistory}</maxHistory>
191 <totalSizeCap>${totalSizeCap}</totalSizeCap>
192 </rollingPolicy>
Michael O'Brien49fb6032017-10-16 01:05:32 -0400193 <encoder class="org.onap.aai.logging.EcompEncoder">
BorislavGb2b99182017-10-03 15:40:55 +0300194 <pattern>${pattern}</pattern>
195 </encoder>
196 </appender>
197 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="dmaapAAIEventConsumerMetric">
198 <filter class="ch.qos.logback.classic.filter.LevelFilter">
199 <level>INFO</level>
200 <onMatch>ACCEPT</onMatch>
201 <onMismatch>DENY</onMismatch>
202 </filter>
203 <File>${dmaapLogDirectory}/${metricsLogName}.log</File>
204 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
205 <fileNamePattern>${dmaapLogDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
206 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
207 <maxFileSize>${maxFileSize}</maxFileSize>
208 </timeBasedFileNamingAndTriggeringPolicy>
209 <maxHistory>${maxHistory}</maxHistory>
210 <totalSizeCap>${totalSizeCap}</totalSizeCap>
211 </rollingPolicy>
Michael O'Brien49fb6032017-10-16 01:05:32 -0400212 <encoder class="org.onap.aai.logging.EcompEncoder">
BorislavGb2b99182017-10-03 15:40:55 +0300213 <pattern>${pattern}</pattern>
214 </encoder>
215 </appender>
216 <!-- Spring related loggers -->
217 <logger level="WARN" name="org.springframework" />
218 <logger level="WARN" name="org.springframework.beans" />
219 <logger level="WARN" name="org.springframework.web" />
220 <logger level="WARN" name="com.blog.spring.jms" />
221 <!-- AJSC Services (bootstrap services) -->
222 <logger level="WARN" name="ajsc" />
223 <logger level="WARN" name="ajsc.RouteMgmtService" />
224 <logger level="WARN" name="ajsc.ComputeService" />
225 <logger level="WARN" name="ajsc.VandelayService" />
226 <logger level="WARN" name="ajsc.FilePersistenceService" />
227 <logger level="WARN" name="ajsc.UserDefinedJarService" />
228 <logger level="WARN" name="ajsc.UserDefinedBeansDefService" />
229 <logger level="WARN" name="ajsc.LoggingConfigurationService" />
230 <!-- AJSC related loggers (DME2 Registration, csi logging, restlet, servlet
231 logging) -->
232 <logger level="WARN" name="ajsc.utils" />
233 <logger level="WARN" name="ajsc.utils.DME2Helper" />
234 <logger level="WARN" name="ajsc.filters" />
235 <logger level="WARN" name="ajsc.beans.interceptors" />
236 <logger level="WARN" name="ajsc.restlet" />
237 <logger level="WARN" name="ajsc.servlet" />
238 <logger level="WARN" name="com.att.ajsc" />
239 <logger level="WARN" name="com.att.ajsc.csi.logging" />
240 <logger level="WARN" name="com.att.ajsc.filemonitor" />
241 <!-- Other Loggers that may help troubleshoot -->
242 <logger level="WARN" name="net.sf" />
243 <logger level="WARN" name="org.apache.commons.httpclient" />
244 <logger level="WARN" name="org.apache.commons" />
245 <logger level="WARN" name="org.apache.coyote" />
246 <logger level="WARN" name="org.apache.jasper" />
247 <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging.
248 May aid in troubleshooting) -->
249 <logger level="WARN" name="org.apache.camel" />
250 <logger level="WARN" name="org.apache.cxf" />
251 <logger level="WARN" name="org.apache.camel.processor.interceptor" />
252 <logger level="WARN" name="org.apache.cxf.jaxrs.interceptor" />
253 <logger level="WARN" name="org.apache.cxf.service" />
254 <logger level="WARN" name="org.restlet" />
255 <logger level="WARN" name="org.apache.camel.component.restlet" />
256 <!-- logback internals logging -->
257 <logger level="WARN" name="ch.qos.logback.classic" />
258 <logger level="WARN" name="ch.qos.logback.core" />
259 <!-- logback jms appenders & loggers definition starts here -->
260 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="auditLogs">
261 <filter class="ch.qos.logback.classic.filter.ThresholdFilter" />
262 <file>${perfLogsDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.log</file>
263 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
264 <fileNamePattern>${perfLogsDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
265 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
266 <maxFileSize>${maxFileSize}</maxFileSize>
267 </timeBasedFileNamingAndTriggeringPolicy>
268 <maxHistory>${maxHistory}</maxHistory>
269 <totalSizeCap>${totalSizeCap}</totalSizeCap>
270 </rollingPolicy>
271 <encoder>
272 <pattern>${pattern}</pattern>
273 </encoder>
274 </appender>
275 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="perfLogs">
276 <filter class="ch.qos.logback.classic.filter.ThresholdFilter" />
277 <file>${perfLogsDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.log</file>
278 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
279 <fileNamePattern>${perfLogsDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
280 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
281 <maxFileSize>${maxFileSize}</maxFileSize>
282 </timeBasedFileNamingAndTriggeringPolicy>
283 <maxHistory>${maxHistory}</maxHistory>
284 <totalSizeCap>${totalSizeCap}</totalSizeCap>
285 </rollingPolicy>
286 <encoder>
287 <pattern>${pattern}</pattern>
288 </encoder>
289 </appender>
290 <appender class="ch.qos.logback.classic.AsyncAppender" name="ASYNC-audit">
291 <queueSize>${queueSize}</queueSize>
292 <includeCallerData>true</includeCallerData>
293 <discardingThreshold>0</discardingThreshold>
294 <appender-ref ref="Audit-Record-Queue" />
295 </appender>
296 <appender class="ch.qos.logback.classic.AsyncAppender" name="ASYNC-perf">
297 <queueSize>${queueSize}</queueSize>
298 <includeCallerData>true</includeCallerData>
299 <discardingThreshold>0</discardingThreshold>
300 <appender-ref ref="Performance-Tracker-Queue" />
301 </appender>
302 <logger additivity="false" level="INFO" name="AuditRecord">
303 <appender-ref ref="ASYNC-audit" />
304 <appender-ref ref="auditLogs" />
305 </logger>
306 <logger additivity="false" level="INFO" name="AuditRecord_DirectCall">
307 <appender-ref ref="ASYNC-audit" />
308 <appender-ref ref="auditLogs" />
309 </logger>
310 <logger additivity="false" level="INFO" name="PerfTrackerRecord">
311 <appender-ref ref="ASYNC-perf" />
312 <appender-ref ref="perfLogs" />
313 </logger>
314 <!-- logback jms appenders & loggers definition ends here -->
Michael O'Brien49fb6032017-10-16 01:05:32 -0400315 <logger additivity="false" level="DEBUG" name="org.onap.aai.interceptors">
BorislavGb2b99182017-10-03 15:40:55 +0300316 <appender-ref ref="asynctranslog" />
317 </logger>
Michael O'Brien49fb6032017-10-16 01:05:32 -0400318 <logger level="DEBUG" name="org.onap.aai.interceptors.PreAaiAjscInterceptor">
BorislavGb2b99182017-10-03 15:40:55 +0300319 <appender-ref ref="asyncAUDIT" />
320 </logger>
Michael O'Brien49fb6032017-10-16 01:05:32 -0400321 <logger level="DEBUG" name="org.onap.aai.interceptors.PostAaiAjscInterceptor">
BorislavGb2b99182017-10-03 15:40:55 +0300322 <appender-ref ref="asyncAUDIT" />
323 </logger>
Michael O'Brien49fb6032017-10-16 01:05:32 -0400324 <logger additivity="false" level="DEBUG" name="org.onap.aai.dmaap">
BorislavGb2b99182017-10-03 15:40:55 +0300325 <appender-ref ref="dmaapAAIEventConsumer" />
326 <appender-ref ref="dmaapAAIEventConsumerDebug" />
327 <appender-ref ref="dmaapAAIEventConsumerMetric" />
328 </logger>
329 <logger level="WARN" name="org.apache" />
330 <logger level="WARN" name="org.zookeeper" />
331 <logger level="WARN" name="com.thinkaurelius" />
332 <!-- ============================================================================ -->
333 <!-- General EELF logger -->
334 <!-- ============================================================================ -->
335 <logger additivity="false" level="WARN" name="com.att.eelf">
336 <appender-ref ref="asyncDEBUG" />
337 <appender-ref ref="asyncERROR" />
338 <appender-ref ref="asyncMETRIC" />
339 <appender-ref ref="asyncAUDIT" />
340 </logger>
341 <root level="INFO">
342 <appender-ref ref="asyncDEBUG" />
343 <appender-ref ref="asyncERROR" />
344 </root>
345</configuration>