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 /> |
Determe, Sebastien (sd378r) | 12d39d3 | 2018-05-15 13:52:47 +0200 | [diff] [blame] | 3 | <property resource="application.properties" /> |
| 4 | <property name="logDirectory" value="${clamp.config.log.path}" /> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 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> |
Determe, Sebastien (sd378r) | 12d39d3 | 2018-05-15 13:52:47 +0200 | [diff] [blame] | 24 | <file>${logDirectory}/clamp/error.log</file> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 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> |
Determe, Sebastien (sd378r) | 12d39d3 | 2018-05-15 13:52:47 +0200 | [diff] [blame] | 32 | <FileNamePattern>${logDirectory}/clamp/error.%i.log.zip |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 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"> |
Determe, Sebastien (sd378r) | 12d39d3 | 2018-05-15 13:52:47 +0200 | [diff] [blame] | 43 | <file>${logDirectory}/clamp/debug.log</file> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 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"> |
Determe, Sebastien (sd378r) | 12d39d3 | 2018-05-15 13:52:47 +0200 | [diff] [blame] | 49 | <fileNamePattern>${logDirectory}/clamp/debug.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern> |
xg353y | e0a5c40 | 2017-11-09 16:52:37 +0100 | [diff] [blame] | 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"> |
Determe, Sebastien (sd378r) | 12d39d3 | 2018-05-15 13:52:47 +0200 | [diff] [blame] | 59 | <file>${logDirectory}/clamp/audit.log</file> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 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> |
Determe, Sebastien (sd378r) | 12d39d3 | 2018-05-15 13:52:47 +0200 | [diff] [blame] | 68 | <FileNamePattern>${logDirectory}/clamp/audit.%i.log.zip |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 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"> |
Determe, Sebastien (sd378r) | 12d39d3 | 2018-05-15 13:52:47 +0200 | [diff] [blame] | 83 | <file>${logDirectory}/clamp/metric.log</file> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 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> |
Determe, Sebastien (sd378r) | 12d39d3 | 2018-05-15 13:52:47 +0200 | [diff] [blame] | 92 | <FileNamePattern>${logDirectory}/clamp/metric.%i.log.zip |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 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"> |
Determe, Sebastien (sd378r) | 12d39d3 | 2018-05-15 13:52:47 +0200 | [diff] [blame] | 108 | <file>${logDirectory}/clamp/security.log</file> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 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> |
Determe, Sebastien (sd378r) | 12d39d3 | 2018-05-15 13:52:47 +0200 | [diff] [blame] | 117 | <FileNamePattern>${logDirectory}/clamp/security.%i.log.zip |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 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> |
xg353y | e640955 | 2018-05-08 16:21:39 +0200 | [diff] [blame] | 129 | <!-- AAF related loggers --> |
| 130 | <logger name="org.onap.aaf" level="INFO" additivity="true"> |
| 131 | <appender-ref ref="DEBUG" /> |
| 132 | </logger> |
| 133 | <logger name="org.apache.catalina.core" level="INFO" additivity="true"> |
| 134 | <appender-ref ref="DEBUG" /> |
| 135 | </logger> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 136 | <!-- CLDS related loggers --> |
xg353y | e0a5c40 | 2017-11-09 16:52:37 +0100 | [diff] [blame] | 137 | <logger name="org.onap.clamp.clds" level="INFO" additivity="true"> |
| 138 | <appender-ref ref="ERROR" /> |
| 139 | </logger> |
Determe, Sebastien (sd378r) | 5f0757a | 2018-04-27 14:38:45 +0200 | [diff] [blame] | 140 | |
| 141 | <!-- CLDS related loggers --> |
Determe, Sebastien (sd378r) | 7c02c52 | 2018-05-03 17:35:55 +0200 | [diff] [blame] | 142 | <logger name="com.att.eelf.error" level="OFF" additivity="true"> |
Determe, Sebastien (sd378r) | 5f0757a | 2018-04-27 14:38:45 +0200 | [diff] [blame] | 143 | <appender-ref ref="ERROR" /> |
| 144 | </logger> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 145 | <!-- EELF related loggers --> |
| 146 | <logger name="com.att.eelf.audit" level="INFO" additivity="false"> |
| 147 | <appender-ref ref="asyncEELFAudit" /> |
| 148 | </logger> |
| 149 | <logger name="com.att.eelf.metrics" level="DEBUG" additivity="false"> |
| 150 | <appender-ref ref="asyncEELFMetrics" /> |
| 151 | </logger> |
| 152 | <logger name="com.att.eelf.security" level="DEBUG" additivity="false"> |
| 153 | <appender-ref ref="asyncEELFSecurity" /> |
| 154 | </logger> |
Determe, Sebastien (sd378r) | e63aa2e | 2017-08-08 03:13:42 -0700 | [diff] [blame] | 155 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 156 | <!-- Spring related loggers --> |
Determe, Sebastien (sd378r) | f744247 | 2018-08-03 15:52:19 +0200 | [diff] [blame^] | 157 | <logger name="org.springframework" level="DEBUG" /> |
| 158 | |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 159 | <!-- Other Loggers that may help troubleshoot --> |
Determe, Sebastien (sd378r) | f744247 | 2018-08-03 15:52:19 +0200 | [diff] [blame^] | 160 | <logger name="org.apache" level="DEBUG" /> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 161 | |
| 162 | <!-- logback internals logging --> |
| 163 | <logger name="ch.qos.logback.classic" level="INFO" /> |
| 164 | <logger name="ch.qos.logback.core" level="INFO" /> |
| 165 | |
| 166 | <!-- logback jms appenders & loggers definition starts here --> |
| 167 | <!-- logback jms appenders & loggers definition starts here --> |
| 168 | <appender name="auditLogs" |
| 169 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 170 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 171 | </filter> |
| 172 | <file>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.log</file> |
| 173 | <rollingPolicy |
| 174 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 175 | <fileNamePattern>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip |
| 176 | </fileNamePattern> |
| 177 | <minIndex>1</minIndex> |
| 178 | <maxIndex>9</maxIndex> |
| 179 | </rollingPolicy> |
| 180 | <triggeringPolicy |
| 181 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 182 | <maxFileSize>5MB</maxFileSize> |
| 183 | </triggeringPolicy> |
| 184 | <encoder> |
| 185 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 186 | </encoder> |
| 187 | </appender> |
| 188 | <appender name="perfLogs" |
| 189 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 190 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 191 | </filter> |
| 192 | <file>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.log</file> |
| 193 | <rollingPolicy |
| 194 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 195 | <fileNamePattern>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip |
| 196 | </fileNamePattern> |
| 197 | <minIndex>1</minIndex> |
| 198 | <maxIndex>9</maxIndex> |
| 199 | </rollingPolicy> |
| 200 | <triggeringPolicy |
| 201 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 202 | <maxFileSize>5MB</maxFileSize> |
| 203 | </triggeringPolicy> |
| 204 | <encoder> |
| 205 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 206 | </encoder> |
| 207 | </appender> |
| 208 | <logger name="AuditRecord" level="INFO" additivity="FALSE"> |
| 209 | <appender-ref ref="auditLogs" /> |
| 210 | </logger> |
| 211 | <logger name="AuditRecord_DirectCall" level="INFO" additivity="FALSE"> |
| 212 | <appender-ref ref="auditLogs" /> |
| 213 | </logger> |
| 214 | <logger name="PerfTrackerRecord" level="INFO" additivity="FALSE"> |
| 215 | <appender-ref ref="perfLogs" /> |
| 216 | </logger> |
| 217 | <!-- logback jms appenders & loggers definition ends here --> |
| 218 | |
Determe, Sebastien (sd378r) | f744247 | 2018-08-03 15:52:19 +0200 | [diff] [blame^] | 219 | <root level="DEBUG"> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 220 | <appender-ref ref="DEBUG" /> |
Determe, Sebastien (sd378r) | 434170f | 2017-10-30 18:50:37 +0100 | [diff] [blame] | 221 | <appender-ref ref="STDOUT" /> |
| 222 | </root> |
Determe, Sebastien (sd378r) | e63aa2e | 2017-08-08 03:13:42 -0700 | [diff] [blame] | 223 | |
| 224 | </configuration> |