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