blob: b898998c85cad3734523685c0aa53bf77d6a4654 [file] [log] [blame]
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +01001<configuration scan="true" scanPeriod="10 seconds" debug="false">
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +01002 <jmxConfigurator />
3 <property name="logDirectory" value="log" />
4 <!-- Example evaluator filter applied against console appender -->
5 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
6 <!-- filter class="ch.qos.logback.classic.filter.LevelFilter"> <level>ERROR</level>
7 <onMatch>ACCEPT</onMatch> <onMismatch>DENY</onMismatch> </filter -->
8 <!-- deny all events with a level below INFO, that is TRACE and DEBUG -->
9 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
10 <level>INFO</level>
11 </filter>
12 <encoder>
13 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n
14 </pattern>
15 </encoder>
16 </appender>
ChrisC5e9feb22017-06-21 02:38:57 -070017
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +010018 <appender name="ERROR"
19 class="ch.qos.logback.core.rolling.RollingFileAppender">
20 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
xg353ye0a5c402017-11-09 16:52:37 +010021 <level>INFO</level>
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +010022 </filter>
23 <file>${logDirectory}/CLAMP/error.log</file>
24 <append>true</append>
25 <encoder>
26 <pattern>%date{"yyyy-MM-dd'T'HH:mm:ss,SSSXXX", UTC}|%X{RequestId}|%.20thread|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%.-5level|%X{ErrorCode}|%X{ErrorDescription}|%msg%n</pattern>
27 </encoder>
28 <rollingPolicy
29 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
30 <maxIndex>10</maxIndex>
31 <FileNamePattern>${logDirectory}/CLAMP/error.%i.log.zip
32 </FileNamePattern>
33 </rollingPolicy>
34 <triggeringPolicy
35 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
36 <maxFileSize>10MB</maxFileSize>
37 </triggeringPolicy>
38 </appender>
ChrisC5e9feb22017-06-21 02:38:57 -070039
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +010040 <appender name="DEBUG"
41 class="ch.qos.logback.core.rolling.RollingFileAppender">
42 <file>${logDirectory}/CLAMP/debug.log</file>
43 <append>true</append>
44 <encoder>
45 <pattern>%date{"yyyy-MM-dd'T'HH:mm:ss,SSSXXX",UTC}|%X{RequestId}|%.20thread|%.-5level|%logger{36}|%msg%n</pattern>
46 </encoder>
xg353ye0a5c402017-11-09 16:52:37 +010047 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
48 <fileNamePattern>${logDirectory}/CLAMP/debug.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern>
49 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +010050 <maxFileSize>10MB</maxFileSize>
xg353ye0a5c402017-11-09 16:52:37 +010051 </timeBasedFileNamingAndTriggeringPolicy>
52 <maxHistory>5</maxHistory>
53 </rollingPolicy>
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +010054 </appender>
ChrisC5e9feb22017-06-21 02:38:57 -070055
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +010056 <appender name="AUDIT"
57 class="ch.qos.logback.core.rolling.RollingFileAppender">
58 <file>${logDirectory}/CLAMP/audit.log</file>
59 <append>true</append>
60 <encoder>
61 <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
62 </pattern>
63 </encoder>
64 <rollingPolicy
65 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
66 <maxIndex>10</maxIndex>
67 <FileNamePattern>${logDirectory}/CLAMP/audit.%i.log.zip
68 </FileNamePattern>
69 </rollingPolicy>
70 <triggeringPolicy
71 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
72 <maxFileSize>10MB</maxFileSize>
73 </triggeringPolicy>
74 </appender>
75 <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
76 <queueSize>256</queueSize>
77 <appender-ref ref="AUDIT" />
78 </appender>
ChrisC5e9feb22017-06-21 02:38:57 -070079
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +010080 <appender name="METRIC"
81 class="ch.qos.logback.core.rolling.RollingFileAppender">
82 <file>${logDirectory}/CLAMP/metric.log</file>
83 <append>true</append>
84 <encoder>
85 <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}|
86 %msg%n</pattern>
87 </encoder>
88 <rollingPolicy
89 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
90 <maxIndex>10</maxIndex>
91 <FileNamePattern>${logDirectory}/CLAMP/metric.%i.log.zip
92 </FileNamePattern>
93 </rollingPolicy>
94 <triggeringPolicy
95 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
96 <maxFileSize>10MB</maxFileSize>
97 </triggeringPolicy>
98 </appender>
99 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
100 <queueSize>256</queueSize>
101 <appender-ref ref="METRIC" />
102 </appender>
ChrisC5e9feb22017-06-21 02:38:57 -0700103
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +0100104 <!-- SECURITY related loggers -->
105 <appender name="SECURITY"
106 class="ch.qos.logback.core.rolling.RollingFileAppender">
107 <file>${logDirectory}/CLAMP/security.log</file>
108 <append>true</append>
109 <encoder>
110 <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
111 </pattern>
112 </encoder>
113 <rollingPolicy
114 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
115 <maxIndex>10</maxIndex>
116 <FileNamePattern>${logDirectory}/CLAMP/security.%i.log.zip
117 </FileNamePattern>
118 </rollingPolicy>
119 <triggeringPolicy
120 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
121 <maxFileSize>10MB</maxFileSize>
122 </triggeringPolicy>
123 </appender>
124 <appender name="asyncEELFSecurity" class="ch.qos.logback.classic.AsyncAppender">
125 <queueSize>256</queueSize>
126 <appender-ref ref="SECURITY" />
127 </appender>
ChrisC5e9feb22017-06-21 02:38:57 -0700128
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +0100129 <!-- CLDS related loggers -->
xg353ye0a5c402017-11-09 16:52:37 +0100130 <logger name="org.onap.clamp.clds" level="INFO" additivity="true">
131 <appender-ref ref="ERROR" />
132 </logger>
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +0100133 <!-- EELF related loggers -->
134 <logger name="com.att.eelf.audit" level="INFO" additivity="false">
135 <appender-ref ref="asyncEELFAudit" />
136 </logger>
137 <logger name="com.att.eelf.metrics" level="DEBUG" additivity="false">
138 <appender-ref ref="asyncEELFMetrics" />
139 </logger>
140 <logger name="com.att.eelf.security" level="DEBUG" additivity="false">
141 <appender-ref ref="asyncEELFSecurity" />
142 </logger>
Determe, Sebastien (sd378r)e63aa2e2017-08-08 03:13:42 -0700143
Determe, Sebastien (sd378r)e63aa2e2017-08-08 03:13:42 -0700144
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +0100145 <!-- Spring related loggers -->
146 <logger name="org.springframework" level="WARN" />
147 <logger name="org.springframework.beans" level="WARN" />
148 <logger name="org.springframework.web" level="WARN" />
149 <logger name="com.blog.spring.jms" level="WARN" />
150
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +0100151 <!-- Other Loggers that may help troubleshoot -->
152 <logger name="net.sf" level="WARN" />
153 <logger name="org.apache.commons.httpclient" level="WARN" />
154 <logger name="org.apache.commons" level="WARN" />
155 <logger name="org.apache.coyote" level="WARN" />
156 <logger name="org.apache.jasper" level="WARN" />
157
158 <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging.
159 May aid in troubleshooting) -->
160 <logger name="org.apache.camel" level="WARN" />
161 <logger name="org.apache.cxf" level="WARN" />
162 <logger name="org.apache.camel.processor.interceptor" level="WARN" />
163 <logger name="org.apache.cxf.jaxrs.interceptor" level="WARN" />
164 <logger name="org.apache.cxf.service" level="WARN" />
165 <logger name="org.restlet" level="DEBUG" />
166 <logger name="org.apache.camel.component.restlet" level="DEBUG" />
167
168 <!-- logback internals logging -->
169 <logger name="ch.qos.logback.classic" level="INFO" />
170 <logger name="ch.qos.logback.core" level="INFO" />
171
172 <!-- logback jms appenders & loggers definition starts here -->
173 <!-- logback jms appenders & loggers definition starts here -->
174 <appender name="auditLogs"
175 class="ch.qos.logback.core.rolling.RollingFileAppender">
176 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
177 </filter>
178 <file>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.log</file>
179 <rollingPolicy
180 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
181 <fileNamePattern>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
182 </fileNamePattern>
183 <minIndex>1</minIndex>
184 <maxIndex>9</maxIndex>
185 </rollingPolicy>
186 <triggeringPolicy
187 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
188 <maxFileSize>5MB</maxFileSize>
189 </triggeringPolicy>
190 <encoder>
191 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
192 </encoder>
193 </appender>
194 <appender name="perfLogs"
195 class="ch.qos.logback.core.rolling.RollingFileAppender">
196 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
197 </filter>
198 <file>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.log</file>
199 <rollingPolicy
200 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
201 <fileNamePattern>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
202 </fileNamePattern>
203 <minIndex>1</minIndex>
204 <maxIndex>9</maxIndex>
205 </rollingPolicy>
206 <triggeringPolicy
207 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
208 <maxFileSize>5MB</maxFileSize>
209 </triggeringPolicy>
210 <encoder>
211 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
212 </encoder>
213 </appender>
214 <logger name="AuditRecord" level="INFO" additivity="FALSE">
215 <appender-ref ref="auditLogs" />
216 </logger>
217 <logger name="AuditRecord_DirectCall" level="INFO" additivity="FALSE">
218 <appender-ref ref="auditLogs" />
219 </logger>
220 <logger name="PerfTrackerRecord" level="INFO" additivity="FALSE">
221 <appender-ref ref="perfLogs" />
222 </logger>
223 <!-- logback jms appenders & loggers definition ends here -->
224
225 <root level="WARN">
226 <appender-ref ref="DEBUG" />
Determe, Sebastien (sd378r)434170f2017-10-30 18:50:37 +0100227 <appender-ref ref="STDOUT" />
228 </root>
Determe, Sebastien (sd378r)e63aa2e2017-08-08 03:13:42 -0700229
230</configuration>