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