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