Determe, Sebastien (sd378r) | 499e4e8 | 2018-08-09 17:14:09 +0200 | [diff] [blame] | 1 | <included> |
| 2 | <jmxConfigurator /> |
| 3 | <!-- Example evaluator filter applied against console appender --> |
| 4 | <appender name="STDOUT" |
| 5 | 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> |
| 17 | |
| 18 | <appender name="ERROR" |
| 19 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 20 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 21 | <level>INFO</level> |
| 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", |
| 27 | UTC}|%X{RequestId}|%.20thread|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%.-5level|%X{ErrorCode}|%X{ErrorDescription}|%msg%n |
| 28 | </pattern> |
| 29 | </encoder> |
| 30 | <rollingPolicy |
| 31 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 32 | <maxIndex>10</maxIndex> |
| 33 | <FileNamePattern>${logDirectory}/clamp/error.%i.log.zip |
| 34 | </FileNamePattern> |
| 35 | </rollingPolicy> |
| 36 | <triggeringPolicy |
| 37 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 38 | <maxFileSize>10MB</maxFileSize> |
| 39 | </triggeringPolicy> |
| 40 | </appender> |
| 41 | |
| 42 | <appender name="DEBUG" |
| 43 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 44 | <file>${logDirectory}/clamp/debug.log</file> |
| 45 | <append>true</append> |
| 46 | <encoder> |
| 47 | <pattern>%date{"yyyy-MM-dd'T'HH:mm:ss,SSSXXX",UTC}|%X{RequestId}|%.20thread|%.-5level|%logger{36}|%msg%n |
| 48 | </pattern> |
| 49 | </encoder> |
| 50 | <rollingPolicy |
| 51 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 52 | <fileNamePattern>${logDirectory}/clamp/debug.%d{yyyy-MM-dd}.%i.log.zip |
| 53 | </fileNamePattern> |
| 54 | <timeBasedFileNamingAndTriggeringPolicy |
| 55 | class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
| 56 | <maxFileSize>10MB</maxFileSize> |
| 57 | </timeBasedFileNamingAndTriggeringPolicy> |
| 58 | <maxHistory>5</maxHistory> |
| 59 | </rollingPolicy> |
| 60 | </appender> |
| 61 | |
| 62 | <appender name="AUDIT" |
| 63 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 64 | <file>${logDirectory}/clamp/audit.log</file> |
| 65 | <append>true</append> |
| 66 | <encoder> |
| 67 | <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 |
| 68 | </pattern> |
| 69 | </encoder> |
| 70 | <rollingPolicy |
| 71 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 72 | <maxIndex>10</maxIndex> |
| 73 | <FileNamePattern>${logDirectory}/clamp/audit.%i.log.zip |
| 74 | </FileNamePattern> |
| 75 | </rollingPolicy> |
| 76 | <triggeringPolicy |
| 77 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 78 | <maxFileSize>10MB</maxFileSize> |
| 79 | </triggeringPolicy> |
| 80 | </appender> |
| 81 | <appender name="asyncEELFAudit" |
| 82 | class="ch.qos.logback.classic.AsyncAppender"> |
| 83 | <queueSize>256</queueSize> |
| 84 | <appender-ref ref="AUDIT" /> |
| 85 | </appender> |
| 86 | |
| 87 | <appender name="METRIC" |
| 88 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 89 | <file>${logDirectory}/clamp/metric.log</file> |
| 90 | <append>true</append> |
| 91 | <encoder> |
| 92 | <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}| |
| 93 | %msg%n</pattern> |
| 94 | </encoder> |
| 95 | <rollingPolicy |
| 96 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 97 | <maxIndex>10</maxIndex> |
| 98 | <FileNamePattern>${logDirectory}/clamp/metric.%i.log.zip |
| 99 | </FileNamePattern> |
| 100 | </rollingPolicy> |
| 101 | <triggeringPolicy |
| 102 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 103 | <maxFileSize>10MB</maxFileSize> |
| 104 | </triggeringPolicy> |
| 105 | </appender> |
| 106 | <appender name="asyncEELFMetrics" |
| 107 | class="ch.qos.logback.classic.AsyncAppender"> |
| 108 | <queueSize>256</queueSize> |
| 109 | <appender-ref ref="METRIC" /> |
| 110 | </appender> |
| 111 | |
| 112 | <!-- SECURITY related loggers --> |
| 113 | <appender name="SECURITY" |
| 114 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 115 | <file>${logDirectory}/clamp/security.log</file> |
| 116 | <append>true</append> |
| 117 | <encoder> |
| 118 | <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 |
| 119 | </pattern> |
| 120 | </encoder> |
| 121 | <rollingPolicy |
| 122 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 123 | <maxIndex>10</maxIndex> |
| 124 | <FileNamePattern>${logDirectory}/clamp/security.%i.log.zip |
| 125 | </FileNamePattern> |
| 126 | </rollingPolicy> |
| 127 | <triggeringPolicy |
| 128 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 129 | <maxFileSize>10MB</maxFileSize> |
| 130 | </triggeringPolicy> |
| 131 | </appender> |
| 132 | <appender name="asyncEELFSecurity" |
| 133 | class="ch.qos.logback.classic.AsyncAppender"> |
| 134 | <queueSize>256</queueSize> |
| 135 | <appender-ref ref="SECURITY" /> |
| 136 | </appender> |
| 137 | <!-- AAF related loggers --> |
| 138 | <logger name="org.onap.aaf" level="INFO" additivity="true"> |
| 139 | <appender-ref ref="DEBUG" /> |
| 140 | </logger> |
| 141 | <logger name="org.apache.catalina.core" level="INFO" |
| 142 | additivity="true"> |
| 143 | <appender-ref ref="DEBUG" /> |
| 144 | </logger> |
| 145 | <!-- CLDS related loggers --> |
| 146 | <logger name="org.onap.clamp.clds" level="INFO" |
| 147 | additivity="true"> |
| 148 | <appender-ref ref="ERROR" /> |
| 149 | </logger> |
| 150 | |
| 151 | <!-- CLDS related loggers --> |
| 152 | <logger name="com.att.eelf.error" level="OFF" additivity="true"> |
| 153 | <appender-ref ref="ERROR" /> |
| 154 | </logger> |
| 155 | <!-- EELF related loggers --> |
| 156 | <logger name="com.att.eelf.audit" level="INFO" |
| 157 | additivity="false"> |
| 158 | <appender-ref ref="asyncEELFAudit" /> |
| 159 | </logger> |
| 160 | <logger name="com.att.eelf.metrics" level="DEBUG" |
| 161 | additivity="false"> |
| 162 | <appender-ref ref="asyncEELFMetrics" /> |
| 163 | </logger> |
| 164 | <logger name="com.att.eelf.security" level="DEBUG" |
| 165 | additivity="false"> |
| 166 | <appender-ref ref="asyncEELFSecurity" /> |
| 167 | </logger> |
| 168 | |
| 169 | <!-- Spring related loggers --> |
| 170 | <logger name="org.springframework" level="DEBUG" /> |
| 171 | |
| 172 | <!-- Other Loggers that may help troubleshoot --> |
| 173 | <logger name="org.apache" level="DEBUG" /> |
| 174 | |
| 175 | <!-- logback internals logging --> |
| 176 | <logger name="ch.qos.logback.classic" level="INFO" /> |
| 177 | <logger name="ch.qos.logback.core" level="INFO" /> |
| 178 | |
| 179 | <!-- logback jms appenders & loggers definition starts here --> |
| 180 | <!-- logback jms appenders & loggers definition starts here --> |
| 181 | <appender name="auditLogs" |
| 182 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 183 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 184 | </filter> |
| 185 | <file>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.log</file> |
| 186 | <rollingPolicy |
| 187 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 188 | <fileNamePattern>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip |
| 189 | </fileNamePattern> |
| 190 | <minIndex>1</minIndex> |
| 191 | <maxIndex>9</maxIndex> |
| 192 | </rollingPolicy> |
| 193 | <triggeringPolicy |
| 194 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 195 | <maxFileSize>5MB</maxFileSize> |
| 196 | </triggeringPolicy> |
| 197 | <encoder> |
| 198 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 199 | </encoder> |
| 200 | </appender> |
| 201 | <appender name="perfLogs" |
| 202 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 203 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 204 | </filter> |
| 205 | <file>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.log</file> |
| 206 | <rollingPolicy |
| 207 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 208 | <fileNamePattern>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip |
| 209 | </fileNamePattern> |
| 210 | <minIndex>1</minIndex> |
| 211 | <maxIndex>9</maxIndex> |
| 212 | </rollingPolicy> |
| 213 | <triggeringPolicy |
| 214 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 215 | <maxFileSize>5MB</maxFileSize> |
| 216 | </triggeringPolicy> |
| 217 | <encoder> |
| 218 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 219 | </encoder> |
| 220 | </appender> |
| 221 | <logger name="AuditRecord" level="INFO" additivity="FALSE"> |
| 222 | <appender-ref ref="auditLogs" /> |
| 223 | </logger> |
| 224 | <logger name="AuditRecord_DirectCall" level="INFO" |
| 225 | additivity="FALSE"> |
| 226 | <appender-ref ref="auditLogs" /> |
| 227 | </logger> |
| 228 | <logger name="PerfTrackerRecord" level="INFO" additivity="FALSE"> |
| 229 | <appender-ref ref="perfLogs" /> |
| 230 | </logger> |
| 231 | <!-- logback jms appenders & loggers definition ends here --> |
| 232 | |
| 233 | <root level="DEBUG"> |
| 234 | <appender-ref ref="DEBUG" /> |
| 235 | <appender-ref ref="STDOUT" /> |
| 236 | </root> |
| 237 | </included> |