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