Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 1 | <configuration scan="true" scanPeriod="10 seconds" debug="false"> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 2 | <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> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 17 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 18 | <appender name="ERROR" |
| 19 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 20 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
xg353y | e0a5c40 | 2017-11-09 16:52:37 +0100 | [diff] [blame] | 21 | <level>INFO</level> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 22 | </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> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 39 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 40 | <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> |
xg353y | e0a5c40 | 2017-11-09 16:52:37 +0100 | [diff] [blame] | 47 | <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) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 50 | <maxFileSize>10MB</maxFileSize> |
xg353y | e0a5c40 | 2017-11-09 16:52:37 +0100 | [diff] [blame] | 51 | </timeBasedFileNamingAndTriggeringPolicy> |
| 52 | <maxHistory>5</maxHistory> |
| 53 | </rollingPolicy> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 54 | </appender> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 55 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 56 | <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> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 79 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 80 | <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> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 103 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 104 | <!-- 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> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 128 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 129 | <!-- CLDS related loggers --> |
xg353y | e0a5c40 | 2017-11-09 16:52:37 +0100 | [diff] [blame] | 130 | <logger name="org.onap.clamp.clds" level="INFO" additivity="true"> |
| 131 | <appender-ref ref="ERROR" /> |
| 132 | </logger> |
Determe, Sebastien (sd378r) | 5f0757a | 2018-04-27 14:38:45 +0200 | [diff] [blame^] | 133 | |
| 134 | <!-- CLDS related loggers --> |
| 135 | <logger name="org.onap.policy.std" level="OFF" additivity="true"> |
| 136 | <appender-ref ref="ERROR" /> |
| 137 | </logger> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 138 | <!-- EELF related loggers --> |
| 139 | <logger name="com.att.eelf.audit" level="INFO" additivity="false"> |
| 140 | <appender-ref ref="asyncEELFAudit" /> |
| 141 | </logger> |
| 142 | <logger name="com.att.eelf.metrics" level="DEBUG" additivity="false"> |
| 143 | <appender-ref ref="asyncEELFMetrics" /> |
| 144 | </logger> |
| 145 | <logger name="com.att.eelf.security" level="DEBUG" additivity="false"> |
| 146 | <appender-ref ref="asyncEELFSecurity" /> |
| 147 | </logger> |
Determe, Sebastien (sd378r) | e63aa2e | 2017-08-08 03:13:42 -0700 | [diff] [blame] | 148 | |
Determe, Sebastien (sd378r) | e63aa2e | 2017-08-08 03:13:42 -0700 | [diff] [blame] | 149 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 150 | <!-- Spring related loggers --> |
| 151 | <logger name="org.springframework" level="WARN" /> |
| 152 | <logger name="org.springframework.beans" level="WARN" /> |
| 153 | <logger name="org.springframework.web" level="WARN" /> |
| 154 | <logger name="com.blog.spring.jms" level="WARN" /> |
| 155 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 156 | <!-- Other Loggers that may help troubleshoot --> |
| 157 | <logger name="net.sf" level="WARN" /> |
| 158 | <logger name="org.apache.commons.httpclient" level="WARN" /> |
| 159 | <logger name="org.apache.commons" level="WARN" /> |
| 160 | <logger name="org.apache.coyote" level="WARN" /> |
| 161 | <logger name="org.apache.jasper" level="WARN" /> |
| 162 | |
| 163 | <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging. |
| 164 | May aid in troubleshooting) --> |
| 165 | <logger name="org.apache.camel" level="WARN" /> |
| 166 | <logger name="org.apache.cxf" level="WARN" /> |
| 167 | <logger name="org.apache.camel.processor.interceptor" level="WARN" /> |
| 168 | <logger name="org.apache.cxf.jaxrs.interceptor" level="WARN" /> |
| 169 | <logger name="org.apache.cxf.service" level="WARN" /> |
| 170 | <logger name="org.restlet" level="DEBUG" /> |
| 171 | <logger name="org.apache.camel.component.restlet" level="DEBUG" /> |
| 172 | |
| 173 | <!-- logback internals logging --> |
| 174 | <logger name="ch.qos.logback.classic" level="INFO" /> |
| 175 | <logger name="ch.qos.logback.core" level="INFO" /> |
| 176 | |
| 177 | <!-- logback jms appenders & loggers definition starts here --> |
| 178 | <!-- logback jms appenders & loggers definition starts here --> |
| 179 | <appender name="auditLogs" |
| 180 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 181 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 182 | </filter> |
| 183 | <file>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.log</file> |
| 184 | <rollingPolicy |
| 185 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 186 | <fileNamePattern>${logDirectory}/Audit-${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 | <appender name="perfLogs" |
| 200 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 201 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 202 | </filter> |
| 203 | <file>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.log</file> |
| 204 | <rollingPolicy |
| 205 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 206 | <fileNamePattern>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip |
| 207 | </fileNamePattern> |
| 208 | <minIndex>1</minIndex> |
| 209 | <maxIndex>9</maxIndex> |
| 210 | </rollingPolicy> |
| 211 | <triggeringPolicy |
| 212 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 213 | <maxFileSize>5MB</maxFileSize> |
| 214 | </triggeringPolicy> |
| 215 | <encoder> |
| 216 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 217 | </encoder> |
| 218 | </appender> |
| 219 | <logger name="AuditRecord" level="INFO" additivity="FALSE"> |
| 220 | <appender-ref ref="auditLogs" /> |
| 221 | </logger> |
| 222 | <logger name="AuditRecord_DirectCall" level="INFO" additivity="FALSE"> |
| 223 | <appender-ref ref="auditLogs" /> |
| 224 | </logger> |
| 225 | <logger name="PerfTrackerRecord" level="INFO" additivity="FALSE"> |
| 226 | <appender-ref ref="perfLogs" /> |
| 227 | </logger> |
| 228 | <!-- logback jms appenders & loggers definition ends here --> |
| 229 | |
| 230 | <root level="WARN"> |
| 231 | <appender-ref ref="DEBUG" /> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 232 | <appender-ref ref="STDOUT" /> |
| 233 | </root> |
Determe, Sebastien (sd378r) | e63aa2e | 2017-08-08 03:13:42 -0700 | [diff] [blame] | 234 | |
| 235 | </configuration> |