blob: 2eba127e9a5d3c7d5669c29158a69078d6e1647f [file] [log] [blame]
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +02001<included>
2 <jmxConfigurator />
3 <!-- Example evaluator filter applied against console appender -->
xg353y00fd66d2018-08-10 09:28:01 +02004<property name="p_tim" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}"/>
5 <property name="p_lvl" value="%level"/>
6 <property name="p_log" value="%logger"/>
7 <property name="p_mdc" value="%replace(%replace(%mdc){'\t','\\\\t'}){'\n', '\\\\n'}"/>
8 <property name="p_msg" value="%replace(%replace(%msg){'\t', '\\\\t'}){'\n','\\\\n'}"/>
9 <property name="p_exc" value="%replace(%replace(%rootException){'\t', '\\\\t'}){'\n','\\\\n'}"/>
10 <property name="p_mak" value="%replace(%replace(%marker){'\t', '\\\\t'}){'\n','\\\\n'}"/>
11 <property name="p_thr" value="%thread"/>
12 <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"/>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +020013 <property name="debugPattern" value="%nopexception${p_tim}|${p_lvl}|${p_mdc}|${p_exc}|%msg%n"/>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +020014
xg353y00fd66d2018-08-10 09:28:01 +020015 <!-- Example evaluator filter applied against console appender -->
16 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
xg353y00fd66d2018-08-10 09:28:01 +020017 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
18 <level>INFO</level>
19 </filter>
20 <encoder>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +020021 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n</pattern>
xg353y00fd66d2018-08-10 09:28:01 +020022 </encoder>
23 </appender>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +020024
xg353y00fd66d2018-08-10 09:28:01 +020025 <appender name="ERROR"
26 class="ch.qos.logback.core.rolling.RollingFileAppender">
27 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
28 <level>INFO</level>
29 </filter>
30 <file>${logDirectory}/error.log</file>
31 <append>true</append>
32 <encoder>
33 <pattern>${defaultPattern}</pattern>
34 </encoder>
35 <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
36 <fileNamePattern>${outputDirectory}/clamp/error.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern>
37 <maxFileSize>50MB</maxFileSize>
38 <maxHistory>30</maxHistory>
39 <totalSizeCap>10GB</totalSizeCap>
40 </rollingPolicy>
41 <triggeringPolicy
42 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
43 <maxFileSize>10MB</maxFileSize>
44 </triggeringPolicy>
45 </appender>
46
47 <appender name="DEBUG"
48 class="ch.qos.logback.core.rolling.RollingFileAppender">
49 <file>${logDirectory}/debug.log</file>
50 <append>true</append>
51 <encoder>
xg353y9fbd0b52018-08-13 16:57:16 +020052 <pattern>${debugPattern}</pattern>
xg353y00fd66d2018-08-10 09:28:01 +020053 </encoder>
54 <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
55 <fileNamePattern>${outputDirectory}/clamp/debug.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern>
56 <maxFileSize>50MB</maxFileSize>
57 <maxHistory>30</maxHistory>
58 <totalSizeCap>10GB</totalSizeCap>
59 </rollingPolicy>
60 </appender>
61
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +020062
63 <appender name="AUDIT"
64 class="ch.qos.logback.core.rolling.RollingFileAppender">
xg353y00fd66d2018-08-10 09:28:01 +020065 <file>${logDirectory}/audit.log</file>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +020066 <append>true</append>
67 <encoder>
68 <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
69 </pattern>
70 </encoder>
71 <rollingPolicy
72 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
73 <maxIndex>10</maxIndex>
xg353y00fd66d2018-08-10 09:28:01 +020074 <FileNamePattern>${logDirectory}/audit.%i.log.zip
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +020075 </FileNamePattern>
76 </rollingPolicy>
77 <triggeringPolicy
78 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
79 <maxFileSize>10MB</maxFileSize>
80 </triggeringPolicy>
81 </appender>
82 <appender name="asyncEELFAudit"
83 class="ch.qos.logback.classic.AsyncAppender">
84 <queueSize>256</queueSize>
85 <appender-ref ref="AUDIT" />
86 </appender>
87
88 <appender name="METRIC"
89 class="ch.qos.logback.core.rolling.RollingFileAppender">
xg353y00fd66d2018-08-10 09:28:01 +020090 <file>${logDirectory}/metric.log</file>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +020091 <append>true</append>
92 <encoder>
93 <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}|
94 %msg%n</pattern>
95 </encoder>
96 <rollingPolicy
97 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
98 <maxIndex>10</maxIndex>
xg353y00fd66d2018-08-10 09:28:01 +020099 <FileNamePattern>${logDirectory}/metric.%i.log.zip
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200100 </FileNamePattern>
101 </rollingPolicy>
102 <triggeringPolicy
103 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
104 <maxFileSize>10MB</maxFileSize>
105 </triggeringPolicy>
106 </appender>
107 <appender name="asyncEELFMetrics"
108 class="ch.qos.logback.classic.AsyncAppender">
109 <queueSize>256</queueSize>
110 <appender-ref ref="METRIC" />
111 </appender>
112
113 <!-- SECURITY related loggers -->
114 <appender name="SECURITY"
115 class="ch.qos.logback.core.rolling.RollingFileAppender">
xg353y00fd66d2018-08-10 09:28:01 +0200116 <file>${logDirectory}/security.log</file>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200117 <append>true</append>
118 <encoder>
119 <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
120 </pattern>
121 </encoder>
122 <rollingPolicy
123 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
124 <maxIndex>10</maxIndex>
xg353y00fd66d2018-08-10 09:28:01 +0200125 <FileNamePattern>${logDirectory}/security.%i.log.zip
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200126 </FileNamePattern>
127 </rollingPolicy>
128 <triggeringPolicy
129 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
130 <maxFileSize>10MB</maxFileSize>
131 </triggeringPolicy>
132 </appender>
133 <appender name="asyncEELFSecurity"
134 class="ch.qos.logback.classic.AsyncAppender">
135 <queueSize>256</queueSize>
136 <appender-ref ref="SECURITY" />
137 </appender>
138 <!-- AAF related loggers -->
139 <logger name="org.onap.aaf" level="INFO" additivity="true">
140 <appender-ref ref="DEBUG" />
141 </logger>
142 <logger name="org.apache.catalina.core" level="INFO"
143 additivity="true">
144 <appender-ref ref="DEBUG" />
145 </logger>
146 <!-- CLDS related loggers -->
xg353y9ac30702019-04-19 13:55:40 +0200147 <logger name="org.onap.clamp" level="INFO"
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200148 additivity="true">
149 <appender-ref ref="ERROR" />
150 </logger>
151
152 <!-- CLDS related loggers -->
153 <logger name="com.att.eelf.error" level="OFF" additivity="true">
154 <appender-ref ref="ERROR" />
155 </logger>
156 <!-- EELF related loggers -->
157 <logger name="com.att.eelf.audit" level="INFO"
158 additivity="false">
159 <appender-ref ref="asyncEELFAudit" />
160 </logger>
161 <logger name="com.att.eelf.metrics" level="DEBUG"
162 additivity="false">
163 <appender-ref ref="asyncEELFMetrics" />
164 </logger>
165 <logger name="com.att.eelf.security" level="DEBUG"
166 additivity="false">
167 <appender-ref ref="asyncEELFSecurity" />
168 </logger>
169
170 <!-- Spring related loggers -->
171 <logger name="org.springframework" level="DEBUG" />
172
173 <!-- Other Loggers that may help troubleshoot -->
174 <logger name="org.apache" level="DEBUG" />
175
176 <!-- logback internals logging -->
177 <logger name="ch.qos.logback.classic" level="INFO" />
178 <logger name="ch.qos.logback.core" level="INFO" />
179
180 <!-- logback jms appenders & loggers definition starts here -->
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200181 <appender name="auditLogs"
182 class="ch.qos.logback.core.rolling.RollingFileAppender">
183 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
184 </filter>
185 <file>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.log</file>
186 <rollingPolicy
187 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
188 <fileNamePattern>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
189 </fileNamePattern>
190 <minIndex>1</minIndex>
191 <maxIndex>9</maxIndex>
192 </rollingPolicy>
193 <triggeringPolicy
194 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
195 <maxFileSize>5MB</maxFileSize>
196 </triggeringPolicy>
197 <encoder>
198 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
199 </encoder>
200 </appender>
201 <appender name="perfLogs"
202 class="ch.qos.logback.core.rolling.RollingFileAppender">
203 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
204 </filter>
205 <file>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.log</file>
206 <rollingPolicy
207 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
208 <fileNamePattern>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
209 </fileNamePattern>
210 <minIndex>1</minIndex>
211 <maxIndex>9</maxIndex>
212 </rollingPolicy>
213 <triggeringPolicy
214 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
215 <maxFileSize>5MB</maxFileSize>
216 </triggeringPolicy>
217 <encoder>
218 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
219 </encoder>
220 </appender>
221 <logger name="AuditRecord" level="INFO" additivity="FALSE">
222 <appender-ref ref="auditLogs" />
223 </logger>
224 <logger name="AuditRecord_DirectCall" level="INFO"
225 additivity="FALSE">
226 <appender-ref ref="auditLogs" />
227 </logger>
228 <logger name="PerfTrackerRecord" level="INFO" additivity="FALSE">
229 <appender-ref ref="perfLogs" />
230 </logger>
231 <!-- logback jms appenders & loggers definition ends here -->
232
233 <root level="DEBUG">
234 <appender-ref ref="DEBUG" />
235 <appender-ref ref="STDOUT" />
236 </root>
237</included>