blob: a91f9576b1bce290ec539935719a5d8bd06a8db5 [file] [log] [blame]
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +02001<included>
2 <jmxConfigurator />
3 <!-- Example evaluator filter applied against console appender -->
sebdet338c2182019-04-25 12:33:31 +02004 <property
5 name="p_tim"
6 value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}" />
7 <property
8 name="p_lvl"
9 value="%level" />
10 <property
11 name="p_log"
12 value="%logger" />
13 <property
14 name="p_mdc"
15 value="%replace(%replace(%mdc){'\t','\\\\t'}){'\n', '\\\\n'}" />
16 <property
17 name="p_msg"
18 value="%replace(%replace(%msg){'\t', '\\\\t'}){'\n','\\\\n'}" />
19 <property
20 name="p_exc"
21 value="%replace(%replace(%rootException){'\t', '\\\\t'}){'\n','\\\\n'}" />
22 <property
23 name="p_mak"
24 value="%replace(%replace(%marker){'\t', '\\\\t'}){'\n','\\\\n'}" />
25 <property
26 name="p_thr"
27 value="%thread" />
28 <property
29 name="defaultPattern"
30 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" />
31 <property
32 name="debugPattern"
33 value="%nopexception${p_tim}|${p_lvl}|${p_mdc}|${p_exc}|%msg%n" />
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +020034
sebdet338c2182019-04-25 12:33:31 +020035 <!-- Example evaluator filter applied against console appender -->
36 <appender
37 name="STDOUT"
38 class="ch.qos.logback.core.ConsoleAppender">
39 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
40 <level>INFO</level>
41 </filter>
42 <encoder>
Krysiak Adam60b5b252019-06-18 09:27:15 +020043 <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n
sebdet338c2182019-04-25 12:33:31 +020044 </pattern>
45 </encoder>
46 </appender>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +020047
sebdet338c2182019-04-25 12:33:31 +020048 <appender
49 name="ERROR"
50 class="ch.qos.logback.core.rolling.RollingFileAppender">
51 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
52 <level>INFO</level>
53 </filter>
54 <file>${logDirectory}/error.log</file>
55 <append>true</append>
56 <encoder>
57 <pattern>${defaultPattern}</pattern>
58 </encoder>
59 <rollingPolicy
60 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
sebdet580141f2020-04-01 00:00:37 +020061 <fileNamePattern>${logDirectory}/error.%d{yyyy-MM-dd}.%i.log.zip
sebdet338c2182019-04-25 12:33:31 +020062 </fileNamePattern>
63 <maxFileSize>50MB</maxFileSize>
sebdet580141f2020-04-01 00:00:37 +020064 <maxHistory>20</maxHistory>
65 <totalSizeCap>1GB</totalSizeCap>
sebdet338c2182019-04-25 12:33:31 +020066 </rollingPolicy>
sebdet338c2182019-04-25 12:33:31 +020067 </appender>
xg353y00fd66d2018-08-10 09:28:01 +020068
sebdet338c2182019-04-25 12:33:31 +020069 <appender
70 name="DEBUG"
71 class="ch.qos.logback.core.rolling.RollingFileAppender">
72 <file>${logDirectory}/debug.log</file>
73 <append>true</append>
74 <encoder>
Krysiak Adam60b5b252019-06-18 09:27:15 +020075 <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n
sebdet338c2182019-04-25 12:33:31 +020076 </pattern>
77 </encoder>
78 <rollingPolicy
79 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
sebdet580141f2020-04-01 00:00:37 +020080 <fileNamePattern>${logDirectory}/debug.%d{yyyy-MM-dd}.%i.log.zip
sebdet338c2182019-04-25 12:33:31 +020081 </fileNamePattern>
82 <maxFileSize>50MB</maxFileSize>
sebdet580141f2020-04-01 00:00:37 +020083 <maxHistory>20</maxHistory>
84 <totalSizeCap>1GB</totalSizeCap>
sebdet338c2182019-04-25 12:33:31 +020085 </rollingPolicy>
86 </appender>
xg353y00fd66d2018-08-10 09:28:01 +020087
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +020088
sebdet338c2182019-04-25 12:33:31 +020089 <appender
90 name="AUDIT"
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +020091 class="ch.qos.logback.core.rolling.RollingFileAppender">
xg353y00fd66d2018-08-10 09:28:01 +020092 <file>${logDirectory}/audit.log</file>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +020093 <append>true</append>
94 <encoder>
95 <pattern>%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%.20thread|%X{VirtualServerName}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Unused}|%X{ProcessKey}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n
96 </pattern>
97 </encoder>
98 <rollingPolicy
sebdet580141f2020-04-01 00:00:37 +020099 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
100 <FileNamePattern>${logDirectory}/audit.%d{yyyy-MM-dd}.%i.log.zip
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200101 </FileNamePattern>
sebdet580141f2020-04-01 00:00:37 +0200102 <maxFileSize>50MB</maxFileSize>
103 <maxHistory>20</maxHistory>
104 <totalSizeCap>1GB</totalSizeCap>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200105 </rollingPolicy>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200106 </appender>
sebdet338c2182019-04-25 12:33:31 +0200107 <appender
108 name="asyncEELFAudit"
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200109 class="ch.qos.logback.classic.AsyncAppender">
110 <queueSize>256</queueSize>
111 <appender-ref ref="AUDIT" />
112 </appender>
113
sebdet338c2182019-04-25 12:33:31 +0200114 <appender
115 name="METRIC"
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200116 class="ch.qos.logback.core.rolling.RollingFileAppender">
xg353y00fd66d2018-08-10 09:28:01 +0200117 <file>${logDirectory}/metric.log</file>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200118 <append>true</append>
119 <encoder>
120 <pattern>%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%.20thread|%X{VirtualServerName}|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Unused}|%X{ProcessKey}|%X{TargetVirtualEntity}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|
121 %msg%n</pattern>
122 </encoder>
123 <rollingPolicy
sebdet580141f2020-04-01 00:00:37 +0200124 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
125 <FileNamePattern>${logDirectory}/metric.%d{yyyy-MM-dd}.%i.log.zip
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200126 </FileNamePattern>
sebdet580141f2020-04-01 00:00:37 +0200127 <maxFileSize>50MB</maxFileSize>
128 <maxHistory>20</maxHistory>
129 <totalSizeCap>1GB</totalSizeCap>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200130 </rollingPolicy>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200131 </appender>
sebdet580141f2020-04-01 00:00:37 +0200132
sebdet338c2182019-04-25 12:33:31 +0200133 <appender
134 name="asyncEELFMetrics"
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200135 class="ch.qos.logback.classic.AsyncAppender">
136 <queueSize>256</queueSize>
137 <appender-ref ref="METRIC" />
138 </appender>
139
140 <!-- SECURITY related loggers -->
sebdet338c2182019-04-25 12:33:31 +0200141 <appender
142 name="SECURITY"
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200143 class="ch.qos.logback.core.rolling.RollingFileAppender">
xg353y00fd66d2018-08-10 09:28:01 +0200144 <file>${logDirectory}/security.log</file>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200145 <append>true</append>
146 <encoder>
147 <pattern>%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%.20thread|%X{VirtualServerName}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Unused}|%X{ProcessKey}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n
148 </pattern>
149 </encoder>
150 <rollingPolicy
sebdet580141f2020-04-01 00:00:37 +0200151 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
152 <FileNamePattern>${logDirectory}/security.%d{yyyy-MM-dd}.%i.log.zip
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200153 </FileNamePattern>
sebdet580141f2020-04-01 00:00:37 +0200154 <maxFileSize>50MB</maxFileSize>
155 <maxHistory>20</maxHistory>
156 <totalSizeCap>1GB</totalSizeCap>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200157 </rollingPolicy>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200158 </appender>
sebdet580141f2020-04-01 00:00:37 +0200159
sebdet338c2182019-04-25 12:33:31 +0200160 <appender
161 name="asyncEELFSecurity"
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200162 class="ch.qos.logback.classic.AsyncAppender">
163 <queueSize>256</queueSize>
164 <appender-ref ref="SECURITY" />
165 </appender>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200166 <!-- logback jms appenders & loggers definition starts here -->
sebdet338c2182019-04-25 12:33:31 +0200167 <appender
168 name="auditLogs"
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200169 class="ch.qos.logback.core.rolling.RollingFileAppender">
170 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
171 </filter>
sebdet580141f2020-04-01 00:00:37 +0200172 <file>${logDirectory}/Audits.log</file>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200173 <rollingPolicy
sebdet580141f2020-04-01 00:00:37 +0200174 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
175 <fileNamePattern>${logDirectory}/Audits-%d{yyyy-MM-dd}.%i.log.zip
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200176 </fileNamePattern>
sebdet580141f2020-04-01 00:00:37 +0200177 <maxFileSize>50MB</maxFileSize>
178 <maxHistory>20</maxHistory>
179 <totalSizeCap>1GB</totalSizeCap>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200180 </rollingPolicy>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200181 <encoder>
182 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
183 </encoder>
184 </appender>
sebdet580141f2020-04-01 00:00:37 +0200185
sebdet338c2182019-04-25 12:33:31 +0200186 <appender
187 name="perfLogs"
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200188 class="ch.qos.logback.core.rolling.RollingFileAppender">
189 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
190 </filter>
sebdet580141f2020-04-01 00:00:37 +0200191 <file>${logDirectory}/Perform.log</file>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200192 <rollingPolicy
sebdet580141f2020-04-01 00:00:37 +0200193 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
194 <fileNamePattern>${logDirectory}/Perform--%d{yyyy-MM-dd}.%i.log.zip
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200195 </fileNamePattern>
sebdet580141f2020-04-01 00:00:37 +0200196 <maxFileSize>50MB</maxFileSize>
197 <maxHistory>20</maxHistory>
198 <totalSizeCap>1GB</totalSizeCap>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200199 </rollingPolicy>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200200 <encoder>
201 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
202 </encoder>
203 </appender>
sebdet338c2182019-04-25 12:33:31 +0200204
205 <logger
206 name="org.onap.aaf"
207 level="DEBUG">
208 <appender-ref ref="DEBUG" />
209 </logger>
210 <logger
sebdet580141f2020-04-01 00:00:37 +0200211 name="org.hibernate"
212 level="INFO">
213 <appender-ref ref="DEBUG" />
214 </logger>
215 <logger
216 name="org.apache.camel.Tracing"
217 level="INFO">
218 <appender-ref ref="DEBUG" />
219 </logger>
220
221 <logger
sebdet338c2182019-04-25 12:33:31 +0200222 name="org.apache"
sebdet580141f2020-04-01 00:00:37 +0200223 level="INFO">
sebdet338c2182019-04-25 12:33:31 +0200224 <appender-ref ref="DEBUG" />
225 </logger>
226 <!-- Spring related loggers -->
227 <logger
228 name="org.springframework"
sebdet580141f2020-04-01 00:00:37 +0200229 level="INFO">
sebdet338c2182019-04-25 12:33:31 +0200230 <appender-ref ref="DEBUG" />
231 </logger>
232
sebdet580141f2020-04-01 00:00:37 +0200233 <!-- CLAMP related loggers -->
sebdet338c2182019-04-25 12:33:31 +0200234 <logger
235 name="org.onap.clamp"
236 level="DEBUG">
237 <appender-ref ref="ERROR" />
238 <appender-ref ref="DEBUG" />
239 </logger>
240
sebdet338c2182019-04-25 12:33:31 +0200241 <logger
242 name="com.att.eelf.error"
243 level="OFF">
244 <appender-ref ref="ERROR" />
245 </logger>
246 <!-- EELF related loggers -->
247 <logger
248 name="com.att.eelf.audit"
249 level="INFO"
250 additivity="false">
251 <appender-ref ref="asyncEELFAudit" />
252 </logger>
253 <logger
254 name="com.att.eelf.metrics"
255 level="DEBUG"
256 additivity="false">
257 <appender-ref ref="asyncEELFMetrics" />
258 </logger>
259 <logger
260 name="com.att.eelf.security"
261 level="DEBUG"
262 additivity="false">
263 <appender-ref ref="asyncEELFSecurity" />
264 </logger>
265
266 <!-- logback internals logging -->
267 <logger
268 name="ch.qos.logback.classic"
269 level="INFO" />
270 <logger
271 name="ch.qos.logback.core"
272 level="INFO" />
273 <logger
274 name="AuditRecord"
275 level="INFO"
276 additivity="false">
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200277 <appender-ref ref="auditLogs" />
278 </logger>
sebdet338c2182019-04-25 12:33:31 +0200279 <logger
280 name="AuditRecord_DirectCall"
281 level="INFO"
282 additivity="false">
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200283 <appender-ref ref="auditLogs" />
284 </logger>
sebdet338c2182019-04-25 12:33:31 +0200285 <logger
286 name="PerfTrackerRecord"
287 level="INFO"
288 additivity="false">
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200289 <appender-ref ref="perfLogs" />
290 </logger>
291 <!-- logback jms appenders & loggers definition ends here -->
292
293 <root level="DEBUG">
294 <appender-ref ref="DEBUG" />
295 <appender-ref ref="STDOUT" />
296 </root>
297</included>