Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 1 | <configuration scan="true" scanPeriod="10 seconds" debug="false"> |
| 2 | <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"> <level>ERROR</level> |
| 8 | <onMatch>ACCEPT</onMatch> <onMismatch>DENY</onMismatch> </filter --> |
| 9 | <!-- deny all events with a level below INFO, that is TRACE and DEBUG --> |
| 10 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 11 | <level>INFO</level> |
| 12 | </filter> |
| 13 | <encoder> |
| 14 | <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n |
| 15 | </pattern> |
| 16 | </encoder> |
| 17 | </appender> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 18 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 19 | <appender name="ERROR" |
| 20 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 21 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
xg353y | e0a5c40 | 2017-11-09 16:52:37 +0100 | [diff] [blame] | 22 | <level>INFO</level> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 23 | </filter> |
| 24 | <file>${logDirectory}/CLAMP/error.log</file> |
| 25 | <append>true</append> |
| 26 | <encoder> |
| 27 | <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> |
| 28 | </encoder> |
| 29 | <rollingPolicy |
| 30 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 31 | <maxIndex>10</maxIndex> |
| 32 | <FileNamePattern>${logDirectory}/CLAMP/error.%i.log.zip |
| 33 | </FileNamePattern> |
| 34 | </rollingPolicy> |
| 35 | <triggeringPolicy |
| 36 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 37 | <maxFileSize>10MB</maxFileSize> |
| 38 | </triggeringPolicy> |
| 39 | </appender> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 40 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 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> |
xg353y | e0a5c40 | 2017-11-09 16:52:37 +0100 | [diff] [blame] | 48 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 49 | <fileNamePattern>${logDirectory}/CLAMP/debug.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern> |
| 50 | <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 51 | <maxFileSize>10MB</maxFileSize> |
xg353y | e0a5c40 | 2017-11-09 16:52:37 +0100 | [diff] [blame] | 52 | </timeBasedFileNamingAndTriggeringPolicy> |
| 53 | <maxHistory>5</maxHistory> |
| 54 | </rollingPolicy> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 55 | </appender> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 56 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 57 | <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 |
| 63 | </pattern> |
| 64 | </encoder> |
| 65 | <rollingPolicy |
| 66 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 67 | <maxIndex>10</maxIndex> |
| 68 | <FileNamePattern>${logDirectory}/CLAMP/audit.%i.log.zip |
| 69 | </FileNamePattern> |
| 70 | </rollingPolicy> |
| 71 | <triggeringPolicy |
| 72 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 73 | <maxFileSize>10MB</maxFileSize> |
| 74 | </triggeringPolicy> |
| 75 | </appender> |
| 76 | <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender"> |
| 77 | <queueSize>256</queueSize> |
| 78 | <appender-ref ref="AUDIT" /> |
| 79 | </appender> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 80 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 81 | <appender name="METRIC" |
| 82 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 83 | <file>${logDirectory}/CLAMP/metric.log</file> |
| 84 | <append>true</append> |
| 85 | <encoder> |
| 86 | <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}| |
| 87 | %msg%n</pattern> |
| 88 | </encoder> |
| 89 | <rollingPolicy |
| 90 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 91 | <maxIndex>10</maxIndex> |
| 92 | <FileNamePattern>${logDirectory}/CLAMP/metric.%i.log.zip |
| 93 | </FileNamePattern> |
| 94 | </rollingPolicy> |
| 95 | <triggeringPolicy |
| 96 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 97 | <maxFileSize>10MB</maxFileSize> |
| 98 | </triggeringPolicy> |
| 99 | </appender> |
| 100 | <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender"> |
| 101 | <queueSize>256</queueSize> |
| 102 | <appender-ref ref="METRIC" /> |
| 103 | </appender> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 104 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 105 | <!-- SECURITY related loggers --> |
| 106 | <appender name="SECURITY" |
| 107 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 108 | <file>${logDirectory}/CLAMP/security.log</file> |
| 109 | <append>true</append> |
| 110 | <encoder> |
| 111 | <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 |
| 112 | </pattern> |
| 113 | </encoder> |
| 114 | <rollingPolicy |
| 115 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 116 | <maxIndex>10</maxIndex> |
| 117 | <FileNamePattern>${logDirectory}/CLAMP/security.%i.log.zip |
| 118 | </FileNamePattern> |
| 119 | </rollingPolicy> |
| 120 | <triggeringPolicy |
| 121 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 122 | <maxFileSize>10MB</maxFileSize> |
| 123 | </triggeringPolicy> |
| 124 | </appender> |
| 125 | <appender name="asyncEELFSecurity" class="ch.qos.logback.classic.AsyncAppender"> |
| 126 | <queueSize>256</queueSize> |
| 127 | <appender-ref ref="SECURITY" /> |
| 128 | </appender> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 129 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 130 | <!-- CLDS related loggers --> |
xg353y | e0a5c40 | 2017-11-09 16:52:37 +0100 | [diff] [blame] | 131 | <logger name="org.onap.clamp.clds" level="INFO" additivity="true"> |
| 132 | <appender-ref ref="ERROR" /> |
| 133 | </logger> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 134 | <!-- EELF related loggers --> |
| 135 | <logger name="com.att.eelf.audit" level="INFO" additivity="false"> |
| 136 | <appender-ref ref="asyncEELFAudit" /> |
| 137 | </logger> |
| 138 | <logger name="com.att.eelf.metrics" level="DEBUG" additivity="false"> |
| 139 | <appender-ref ref="asyncEELFMetrics" /> |
| 140 | </logger> |
| 141 | <logger name="com.att.eelf.security" level="DEBUG" additivity="false"> |
| 142 | <appender-ref ref="asyncEELFSecurity" /> |
| 143 | </logger> |
Determe, Sebastien (sd378r) | e63aa2e | 2017-08-08 03:13:42 -0700 | [diff] [blame] | 144 | |
Determe, Sebastien (sd378r) | e63aa2e | 2017-08-08 03:13:42 -0700 | [diff] [blame] | 145 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 146 | <!-- Spring related loggers --> |
| 147 | <logger name="org.springframework" level="WARN" /> |
| 148 | <logger name="org.springframework.beans" level="WARN" /> |
| 149 | <logger name="org.springframework.web" level="WARN" /> |
| 150 | <logger name="com.blog.spring.jms" level="WARN" /> |
| 151 | |
| 152 | <!-- AJSC Services (bootstrap services) --> |
| 153 | <logger name="ajsc" level="WARN" /> |
| 154 | <logger name="ajsc.RouteMgmtService" level="INFO" /> |
| 155 | <logger name="ajsc.ComputeService" level="INFO" /> |
| 156 | <logger name="ajsc.VandelayService" level="WARN" /> |
| 157 | <logger name="ajsc.FilePersistenceService" level="WARN" /> |
| 158 | <logger name="ajsc.UserDefinedJarService" level="WARN" /> |
| 159 | <logger name="ajsc.UserDefinedBeansDefService" level="WARN" /> |
| 160 | <logger name="ajsc.LoggingConfigurationService" level="WARN" /> |
| 161 | |
| 162 | <!-- AJSC related loggers (DME2 Registration, csi logging, restlet, servlet |
| 163 | logging) --> |
| 164 | <logger name="ajsc.utils" level="WARN" /> |
| 165 | <logger name="ajsc.utils.DME2Helper" level="INFO" /> |
| 166 | <logger name="ajsc.filters" level="DEBUG" /> |
| 167 | <logger name="ajsc.beans.interceptors" level="DEBUG" /> |
| 168 | <logger name="ajsc.restlet" level="DEBUG" /> |
| 169 | <logger name="ajsc.servlet" level="DEBUG" /> |
| 170 | <logger name="com.att" level="WARN" /> |
| 171 | <logger name="com.att.ajsc.csi.logging" level="DEBUG" /> |
| 172 | <logger name="com.att.ajsc.filemonitor" level="WARN" /> |
| 173 | <logger name="com.att.ajsc.introscope" level="info" /> |
| 174 | |
| 175 | <!-- Other Loggers that may help troubleshoot --> |
| 176 | <logger name="net.sf" level="WARN" /> |
| 177 | <logger name="org.apache.commons.httpclient" level="WARN" /> |
| 178 | <logger name="org.apache.commons" level="WARN" /> |
| 179 | <logger name="org.apache.coyote" level="WARN" /> |
| 180 | <logger name="org.apache.jasper" level="WARN" /> |
| 181 | |
| 182 | <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging. |
| 183 | May aid in troubleshooting) --> |
| 184 | <logger name="org.apache.camel" level="WARN" /> |
| 185 | <logger name="org.apache.cxf" level="WARN" /> |
| 186 | <logger name="org.apache.camel.processor.interceptor" level="WARN" /> |
| 187 | <logger name="org.apache.cxf.jaxrs.interceptor" level="WARN" /> |
| 188 | <logger name="org.apache.cxf.service" level="WARN" /> |
| 189 | <logger name="org.restlet" level="DEBUG" /> |
| 190 | <logger name="org.apache.camel.component.restlet" level="DEBUG" /> |
| 191 | |
| 192 | <!-- logback internals logging --> |
| 193 | <logger name="ch.qos.logback.classic" level="INFO" /> |
| 194 | <logger name="ch.qos.logback.core" level="INFO" /> |
| 195 | |
| 196 | <!-- logback jms appenders & loggers definition starts here --> |
| 197 | <!-- logback jms appenders & loggers definition starts here --> |
| 198 | <appender name="auditLogs" |
| 199 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 200 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 201 | </filter> |
| 202 | <file>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.log</file> |
| 203 | <rollingPolicy |
| 204 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 205 | <fileNamePattern>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip |
| 206 | </fileNamePattern> |
| 207 | <minIndex>1</minIndex> |
| 208 | <maxIndex>9</maxIndex> |
| 209 | </rollingPolicy> |
| 210 | <triggeringPolicy |
| 211 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 212 | <maxFileSize>5MB</maxFileSize> |
| 213 | </triggeringPolicy> |
| 214 | <encoder> |
| 215 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 216 | </encoder> |
| 217 | </appender> |
| 218 | <appender name="perfLogs" |
| 219 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 220 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 221 | </filter> |
| 222 | <file>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.log</file> |
| 223 | <rollingPolicy |
| 224 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 225 | <fileNamePattern>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip |
| 226 | </fileNamePattern> |
| 227 | <minIndex>1</minIndex> |
| 228 | <maxIndex>9</maxIndex> |
| 229 | </rollingPolicy> |
| 230 | <triggeringPolicy |
| 231 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 232 | <maxFileSize>5MB</maxFileSize> |
| 233 | </triggeringPolicy> |
| 234 | <encoder> |
| 235 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 236 | </encoder> |
| 237 | </appender> |
| 238 | <logger name="AuditRecord" level="INFO" additivity="FALSE"> |
| 239 | <appender-ref ref="auditLogs" /> |
| 240 | </logger> |
| 241 | <logger name="AuditRecord_DirectCall" level="INFO" 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 --> |
| 248 | |
| 249 | <root level="WARN"> |
| 250 | <appender-ref ref="DEBUG" /> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 251 | <appender-ref ref="STDOUT" /> |
| 252 | </root> |
Determe, Sebastien (sd378r) | e63aa2e | 2017-08-08 03:13:42 -0700 | [diff] [blame] | 253 | |
| 254 | </configuration> |