blob: 178ca23a1f7f7b6977909a2aeb31c1f51bed5f00 [file] [log] [blame]
ChrisC5e9feb22017-06-21 02:38:57 -07001<configuration scan="true" scanPeriod="3 seconds" debug="false">
Determe, Sebastien (sd378r)e63aa2e2017-08-08 03:13:42 -07002 <contextName>${module.ajsc.namespace.name}</contextName>
3 <jmxConfigurator />
4 <property name="logDirectory" value="log" />
5 <!-- Example evaluator filter applied against console appender -->
6 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
7 <!-- filter class="ch.qos.logback.classic.filter.LevelFilter">
8 <level>ERROR</level>
9 <onMatch>ACCEPT</onMatch>
10 <onMismatch>DENY</onMismatch>
11 </filter -->
12 <!-- deny all events with a level below INFO, that is TRACE and DEBUG -->
13 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
14 <level>INFO</level>
15 </filter>
16 <encoder>
17 <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n
18 </pattern>
19 </encoder>
20 </appender>
21
22 <appender name="ERROR"
23 class="ch.qos.logback.core.rolling.RollingFileAppender">
24 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
25 <level>WARN</level>
26 </filter>
27 <file>${logDirectory}/CLAMP/error.log</file>
28 <append>true</append>
29 <encoder>
30 <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>
31 </encoder>
32 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
33 <maxIndex>10</maxIndex>
34 <FileNamePattern>${logDirectory}/CLAMP/error.%i.log.zip</FileNamePattern>
35 </rollingPolicy>
36 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
37 <maxFileSize>10MB</maxFileSize>
38 </triggeringPolicy>
39 </appender>
40
41 <appender name="DEBUG"
42 class="ch.qos.logback.core.rolling.RollingFileAppender">
43 <file>${logDirectory}/CLAMP/debug.log</file>
44 <append>true</append>
45 <encoder>
46 <pattern>%date{"yyyy-MM-dd'T'HH:mm:ss,SSSXXX", UTC}|%X{RequestId}|%.20thread|%.-5level|%logger{36}|%msg%n</pattern>
47 </encoder>
48 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
49 <maxIndex>10</maxIndex>
50 <FileNamePattern>${logDirectory}/CLAMP/debug.%i.log.zip</FileNamePattern>
51 </rollingPolicy>
52 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
53 <maxFileSize>10MB</maxFileSize>
54 </triggeringPolicy>
55 </appender>
ChrisC5e9feb22017-06-21 02:38:57 -070056
Determe, Sebastien (sd378r)e63aa2e2017-08-08 03:13:42 -070057 <appender name="AUDIT"
58 class="ch.qos.logback.core.rolling.RollingFileAppender">
59 <file>${logDirectory}/CLAMP/audit.log</file>
60 <append>true</append>
61 <encoder>
62 <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</pattern>
63 </encoder>
64 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
65 <maxIndex>10</maxIndex>
66 <FileNamePattern>${logDirectory}/CLAMP/audit.%i.log.zip</FileNamePattern>
67 </rollingPolicy>
68 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
69 <maxFileSize>10MB</maxFileSize>
70 </triggeringPolicy>
71 </appender>
72 <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
73 <queueSize>256</queueSize>
74 <appender-ref ref="AUDIT" />
75 </appender>
76
77 <appender name="METRIC"
78 class="ch.qos.logback.core.rolling.RollingFileAppender">
79 <file>${logDirectory}/CLAMP/metric.log</file>
80 <append>true</append>
81 <encoder>
82 <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}| %msg%n</pattern>
83 </encoder>
84 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
85 <maxIndex>10</maxIndex>
86 <FileNamePattern>${logDirectory}/CLAMP/metric.%i.log.zip</FileNamePattern>
87 </rollingPolicy>
88 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
89 <maxFileSize>10MB</maxFileSize>
90 </triggeringPolicy>
91 </appender>
92 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
93 <queueSize>256</queueSize>
94 <appender-ref ref="METRIC"/>
95 </appender>
ChrisC5e9feb22017-06-21 02:38:57 -070096
Determe, Sebastien (sd378r)e63aa2e2017-08-08 03:13:42 -070097 <!-- CLDS related loggers -->
98 <logger name="com.att.ajsc.clds" level="INFO" />
99
100 <!-- EELF related loggers -->
101 <logger name="com.att.eelf.audit" level="INFO" additivity="false">
102 <appender-ref ref="asyncEELFAudit" />
103 </logger>
104 <logger name="com.att.eelf.metrics" level="DEBUG" additivity="false">
105 <appender-ref ref="asyncEELFMetrics" />
106 </logger>
107
ChrisC5e9feb22017-06-21 02:38:57 -0700108
Determe, Sebastien (sd378r)e63aa2e2017-08-08 03:13:42 -0700109 <!-- Spring related loggers -->
110 <logger name="org.springframework" level="WARN" />
111 <logger name="org.springframework.beans" level="WARN" />
112 <logger name="org.springframework.web" level="WARN" />
113 <logger name="com.blog.spring.jms" level="WARN" />
ChrisC5e9feb22017-06-21 02:38:57 -0700114
Determe, Sebastien (sd378r)e63aa2e2017-08-08 03:13:42 -0700115 <!-- AJSC Services (bootstrap services) -->
116 <logger name="ajsc" level="WARN" />
117 <logger name="ajsc.RouteMgmtService" level="INFO" />
118 <logger name="ajsc.ComputeService" level="INFO" />
119 <logger name="ajsc.VandelayService" level="WARN" />
120 <logger name="ajsc.FilePersistenceService" level="WARN" />
121 <logger name="ajsc.UserDefinedJarService" level="WARN" />
122 <logger name="ajsc.UserDefinedBeansDefService" level="WARN" />
123 <logger name="ajsc.LoggingConfigurationService" level="WARN" />
ChrisC5e9feb22017-06-21 02:38:57 -0700124
Determe, Sebastien (sd378r)e63aa2e2017-08-08 03:13:42 -0700125 <!-- AJSC related loggers (DME2 Registration, csi logging, restlet, servlet
126 logging) -->
127 <logger name="ajsc.utils" level="WARN" />
128 <logger name="ajsc.utils.DME2Helper" level="INFO" />
129 <logger name="ajsc.filters" level="DEBUG" />
130 <logger name="ajsc.beans.interceptors" level="DEBUG" />
131 <logger name="ajsc.restlet" level="DEBUG" />
132 <logger name="ajsc.servlet" level="DEBUG" />
133 <logger name="com.att" level="WARN" />
134 <logger name="com.att.ajsc.csi.logging" level="DEBUG" />
135 <logger name="com.att.ajsc.filemonitor" level="WARN" />
136 <logger name="com.att.ajsc.introscope" level="info" />
ChrisC5e9feb22017-06-21 02:38:57 -0700137
Determe, Sebastien (sd378r)e63aa2e2017-08-08 03:13:42 -0700138 <!-- Other Loggers that may help troubleshoot -->
139 <logger name="net.sf" level="WARN" />
140 <logger name="org.apache.commons.httpclient" level="WARN" />
141 <logger name="org.apache.commons" level="WARN" />
142 <logger name="org.apache.coyote" level="WARN" />
143 <logger name="org.apache.jasper" level="WARN" />
ChrisC5e9feb22017-06-21 02:38:57 -0700144
Determe, Sebastien (sd378r)e63aa2e2017-08-08 03:13:42 -0700145 <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging.
146 May aid in troubleshooting) -->
147 <logger name="org.apache.camel" level="WARN" />
148 <logger name="org.apache.cxf" level="WARN" />
149 <logger name="org.apache.camel.processor.interceptor" level="WARN" />
150 <logger name="org.apache.cxf.jaxrs.interceptor" level="WARN" />
151 <logger name="org.apache.cxf.service" level="WARN" />
152 <logger name="org.restlet" level="DEBUG" />
153 <logger name="org.apache.camel.component.restlet" level="DEBUG" />
154
155 <!-- logback internals logging -->
156 <logger name="ch.qos.logback.classic" level="INFO" />
157 <logger name="ch.qos.logback.core" level="INFO" />
158
159 <!-- logback jms appenders & loggers definition starts here -->
160 <!-- logback jms appenders & loggers definition starts here -->
161 <appender name="auditLogs"
162 class="ch.qos.logback.core.rolling.RollingFileAppender">
163 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
164 </filter>
165 <file>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.log</file>
166 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
167 <fileNamePattern>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
168 </fileNamePattern>
169 <minIndex>1</minIndex>
170 <maxIndex>9</maxIndex>
171 </rollingPolicy>
172 <triggeringPolicy
173 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
174 <maxFileSize>5MB</maxFileSize>
175 </triggeringPolicy>
176 <encoder>
177 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
178 </encoder>
179 </appender>
180 <appender name="perfLogs"
181 class="ch.qos.logback.core.rolling.RollingFileAppender">
182 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
183 </filter>
184 <file>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.log</file>
185 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
186 <fileNamePattern>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip
187 </fileNamePattern>
188 <minIndex>1</minIndex>
189 <maxIndex>9</maxIndex>
190 </rollingPolicy>
191 <triggeringPolicy
192 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
193 <maxFileSize>5MB</maxFileSize>
194 </triggeringPolicy>
195 <encoder>
196 <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern>
197 </encoder>
198 </appender>
199 <logger name="AuditRecord" level="INFO" additivity="FALSE">
200 <appender-ref ref="auditLogs" />
201 </logger>
202 <logger name="AuditRecord_DirectCall" level="INFO" additivity="FALSE">
203 <appender-ref ref="auditLogs" />
204 </logger>
205 <logger name="PerfTrackerRecord" level="INFO" additivity="FALSE">
206 <appender-ref ref="perfLogs" />
207 </logger>
208 <!-- logback jms appenders & loggers definition ends here -->
209
210 <root level="WARN">
211 <appender-ref ref="DEBUG" />
212 <appender-ref ref="ERROR" />
213 <appender-ref ref="STDOUT" />
214 </root>
215
216</configuration>