blob: 03551fe24166bd51759f6f4626e3c526a5057d7e [file] [log] [blame]
Mukul379e2522018-09-05 12:26:02 +00001<?xml version = "1.0" encoding = "UTF-8" ?>
2<!--
3# Copyright © 2018 AT&T, Amdocs, Bell Canada Intellectual Property. All rights reserved.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16-->
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +020017<included>
18 <jmxConfigurator />
19 <!-- Example evaluator filter applied against console appender -->
20<property name="p_tim" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}"/>
21 <property name="p_lvl" value="%level"/>
22 <property name="p_log" value="%logger"/>
23 <property name="p_mdc" value="%replace(%replace(%mdc){'\t','\\\\t'}){'\n', '\\\\n'}"/>
24 <property name="p_msg" value="%replace(%replace(%msg){'\t', '\\\\t'}){'\n','\\\\n'}"/>
25 <property name="p_exc" value="%replace(%replace(%rootException){'\t', '\\\\t'}){'\n','\\\\n'}"/>
26 <property name="p_mak" value="%replace(%replace(%marker){'\t', '\\\\t'}){'\n','\\\\n'}"/>
27 <property name="p_thr" value="%thread"/>
28 <property name="defaultPattern" 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"/>
29 <property name="debugPattern" value="%nopexception${p_tim}|${p_lvl}|${p_mdc}|${p_exc}|%msg%n"/>
30
ac2550de009892018-05-24 15:47:05 +020031 <!-- Example evaluator filter applied against console appender -->
32 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
ac2550de009892018-05-24 15:47:05 +020033 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
34 <level>INFO</level>
35 </filter>
36 <encoder>
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +020037 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n</pattern>
ac2550de009892018-05-24 15:47:05 +020038 </encoder>
39 </appender>
40
41 <appender name="ERROR"
42 class="ch.qos.logback.core.rolling.RollingFileAppender">
43 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
44 <level>INFO</level>
45 </filter>
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +020046 <file>${logDirectory}/error2.log</file>
ac2550de009892018-05-24 15:47:05 +020047 <append>true</append>
48 <encoder>
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +020049 <pattern>${defaultPattern}</pattern>
ac2550de009892018-05-24 15:47:05 +020050 </encoder>
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +020051 <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
52 <fileNamePattern>${outputDirectory}/clamp/error.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern>
53 <maxFileSize>50MB</maxFileSize>
54 <maxHistory>30</maxHistory>
55 <totalSizeCap>10GB</totalSizeCap>
ac2550de009892018-05-24 15:47:05 +020056 </rollingPolicy>
57 <triggeringPolicy
58 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
59 <maxFileSize>10MB</maxFileSize>
60 </triggeringPolicy>
61 </appender>
62
63 <appender name="DEBUG"
64 class="ch.qos.logback.core.rolling.RollingFileAppender">
65 <file>${logDirectory}/debug.log</file>
66 <append>true</append>
67 <encoder>
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +020068 <pattern>${debugPattern}</pattern>
ac2550de009892018-05-24 15:47:05 +020069 </encoder>
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +020070 <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
71 <fileNamePattern>${outputDirectory}/clamp/debug.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern>
72 <maxFileSize>50MB</maxFileSize>
73 <maxHistory>30</maxHistory>
74 <totalSizeCap>10GB</totalSizeCap>
ac2550de009892018-05-24 15:47:05 +020075 </rollingPolicy>
76 </appender>
77
ac2550de009892018-05-24 15:47:05 +020078
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +020079 <appender name="AUDIT"
80 class="ch.qos.logback.core.rolling.RollingFileAppender">
81 <file>${logDirectory}/audit.log</file>
82 <append>true</append>
83 <encoder>
84 <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
85 </pattern>
86 </encoder>
87 <rollingPolicy
88 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
89 <maxIndex>10</maxIndex>
90 <FileNamePattern>${logDirectory}/audit.%i.log.zip
91 </FileNamePattern>
92 </rollingPolicy>
93 <triggeringPolicy
94 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
95 <maxFileSize>10MB</maxFileSize>
96 </triggeringPolicy>
97 </appender>
98 <appender name="asyncEELFAudit"
99 class="ch.qos.logback.classic.AsyncAppender">
100 <queueSize>256</queueSize>
101 <appender-ref ref="AUDIT" />
102 </appender>
ac2550de009892018-05-24 15:47:05 +0200103
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +0200104 <appender name="METRIC"
105 class="ch.qos.logback.core.rolling.RollingFileAppender">
106 <file>${logDirectory}/metric.log</file>
107 <append>true</append>
108 <encoder>
109 <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}|
110 %msg%n</pattern>
111 </encoder>
112 <rollingPolicy
113 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
114 <maxIndex>10</maxIndex>
115 <FileNamePattern>${logDirectory}/metric.%i.log.zip
116 </FileNamePattern>
117 </rollingPolicy>
118 <triggeringPolicy
119 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
120 <maxFileSize>10MB</maxFileSize>
121 </triggeringPolicy>
122 </appender>
123 <appender name="asyncEELFMetrics"
124 class="ch.qos.logback.classic.AsyncAppender">
125 <queueSize>256</queueSize>
126 <appender-ref ref="METRIC" />
127 </appender>
ac2550de009892018-05-24 15:47:05 +0200128
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +0200129 <!-- SECURITY related loggers -->
130 <appender name="SECURITY"
131 class="ch.qos.logback.core.rolling.RollingFileAppender">
132 <file>${logDirectory}/security.log</file>
133 <append>true</append>
134 <encoder>
135 <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
136 </pattern>
137 </encoder>
138 <rollingPolicy
139 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
140 <maxIndex>10</maxIndex>
141 <FileNamePattern>${logDirectory}/security.%i.log.zip
142 </FileNamePattern>
143 </rollingPolicy>
144 <triggeringPolicy
145 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
146 <maxFileSize>10MB</maxFileSize>
147 </triggeringPolicy>
148 </appender>
149 <appender name="asyncEELFSecurity"
150 class="ch.qos.logback.classic.AsyncAppender">
151 <queueSize>256</queueSize>
152 <appender-ref ref="SECURITY" />
153 </appender>
154 <!-- AAF related loggers -->
155 <logger name="org.onap.aaf" level="INFO" additivity="true">
156 <appender-ref ref="DEBUG" />
157 </logger>
158 <logger name="org.apache.catalina.core" level="INFO"
159 additivity="true">
160 <appender-ref ref="DEBUG" />
161 </logger>
162 <!-- CLDS related loggers -->
163 <logger name="org.onap.clamp.clds" level="INFO"
164 additivity="true">
165 <appender-ref ref="ERROR" />
166 </logger>
ac2550de009892018-05-24 15:47:05 +0200167
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +0200168 <!-- CLDS related loggers -->
169 <logger name="com.att.eelf.error" level="OFF" additivity="true">
170 <appender-ref ref="ERROR" />
171 </logger>
172 <!-- EELF related loggers -->
173 <logger name="com.att.eelf.audit" level="INFO"
174 additivity="false">
175 <appender-ref ref="asyncEELFAudit" />
176 </logger>
177 <logger name="com.att.eelf.metrics" level="DEBUG"
178 additivity="false">
179 <appender-ref ref="asyncEELFMetrics" />
180 </logger>
181 <logger name="com.att.eelf.security" level="DEBUG"
182 additivity="false">
183 <appender-ref ref="asyncEELFSecurity" />
184 </logger>
ac2550de009892018-05-24 15:47:05 +0200185
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +0200186 <!-- Spring related loggers -->
187 <logger name="org.springframework" level="DEBUG" />
ac2550de009892018-05-24 15:47:05 +0200188
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +0200189 <!-- Other Loggers that may help troubleshoot -->
190 <logger name="org.apache" level="DEBUG" />
ac2550de009892018-05-24 15:47:05 +0200191
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +0200192 <!-- logback internals logging -->
193 <logger name="ch.qos.logback.classic" level="INFO" />
194 <logger name="ch.qos.logback.core" level="INFO" />
ac2550de009892018-05-24 15:47:05 +0200195
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +0200196 <!-- logback jms appenders & loggers definition starts here -->
197 <appender name="auditLogs"
198 class="ch.qos.logback.core.rolling.RollingFileAppender">
199 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
200 </filter>
201 <file>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.log</file>
202 <rollingPolicy
203 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
204 <fileNamePattern>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
205 </fileNamePattern>
206 <minIndex>1</minIndex>
207 <maxIndex>9</maxIndex>
208 </rollingPolicy>
209 <triggeringPolicy
210 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
211 <maxFileSize>5MB</maxFileSize>
212 </triggeringPolicy>
213 <encoder>
214 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
215 </encoder>
216 </appender>
217 <appender name="perfLogs"
218 class="ch.qos.logback.core.rolling.RollingFileAppender">
219 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
220 </filter>
221 <file>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.log</file>
222 <rollingPolicy
223 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
224 <fileNamePattern>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
225 </fileNamePattern>
226 <minIndex>1</minIndex>
227 <maxIndex>9</maxIndex>
228 </rollingPolicy>
229 <triggeringPolicy
230 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
231 <maxFileSize>5MB</maxFileSize>
232 </triggeringPolicy>
233 <encoder>
234 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
235 </encoder>
236 </appender>
237 <logger name="AuditRecord" level="INFO" additivity="FALSE">
238 <appender-ref ref="auditLogs" />
239 </logger>
240 <logger name="AuditRecord_DirectCall" level="INFO"
241 additivity="FALSE">
242 <appender-ref ref="auditLogs" />
243 </logger>
244 <logger name="PerfTrackerRecord" level="INFO" additivity="FALSE">
245 <appender-ref ref="perfLogs" />
246 </logger>
247 <!-- logback jms appenders & loggers definition ends here -->
ac2550de009892018-05-24 15:47:05 +0200248
Determe, Sebastien (sd378r)b84a92d2018-08-28 13:28:12 +0200249 <root level="DEBUG">
250 <appender-ref ref="DEBUG" />
251 <appender-ref ref="STDOUT" />
252 </root>
253</included>
ac2550de009892018-05-24 15:47:05 +0200254