Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 1 | <included> |
| 2 | <jmxConfigurator /> |
| 3 | <!-- Example evaluator filter applied against console appender --> |
| 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"/> |
| 13 | <property name="debugPattern" value="%nopexception${p_tim}|${p_lvl}|${p_mdc}|${p_exc}|%msg%n"/> |
| 14 | |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 15 | <!-- Example evaluator filter applied against console appender --> |
| 16 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 17 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 18 | <level>INFO</level> |
| 19 | </filter> |
| 20 | <encoder> |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 21 | <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n</pattern> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 22 | </encoder> |
| 23 | </appender> |
| 24 | |
| 25 | <appender name="ERROR" |
| 26 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 27 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 28 | <level>INFO</level> |
| 29 | </filter> |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 30 | <file>${logDirectory}/error2.log</file> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 31 | <append>true</append> |
| 32 | <encoder> |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 33 | <pattern>${defaultPattern}</pattern> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 34 | </encoder> |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 35 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 36 | <fileNamePattern>${outputDirectory}/clamp/error.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern> |
| 37 | <maxFileSize>50MB</maxFileSize> |
| 38 | <maxHistory>30</maxHistory> |
| 39 | <totalSizeCap>10GB</totalSizeCap> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 40 | </rollingPolicy> |
| 41 | <triggeringPolicy |
| 42 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 43 | <maxFileSize>10MB</maxFileSize> |
| 44 | </triggeringPolicy> |
| 45 | </appender> |
| 46 | |
| 47 | <appender name="DEBUG" |
| 48 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 49 | <file>${logDirectory}/debug.log</file> |
| 50 | <append>true</append> |
| 51 | <encoder> |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 52 | <pattern>${debugPattern}</pattern> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 53 | </encoder> |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 54 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 55 | <fileNamePattern>${outputDirectory}/clamp/debug.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern> |
| 56 | <maxFileSize>50MB</maxFileSize> |
| 57 | <maxHistory>30</maxHistory> |
| 58 | <totalSizeCap>10GB</totalSizeCap> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 59 | </rollingPolicy> |
| 60 | </appender> |
| 61 | |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 62 | |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 63 | <appender name="AUDIT" |
| 64 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 65 | <file>${logDirectory}/audit.log</file> |
| 66 | <append>true</append> |
| 67 | <encoder> |
| 68 | <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 |
| 69 | </pattern> |
| 70 | </encoder> |
| 71 | <rollingPolicy |
| 72 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 73 | <maxIndex>10</maxIndex> |
| 74 | <FileNamePattern>${logDirectory}/audit.%i.log.zip |
| 75 | </FileNamePattern> |
| 76 | </rollingPolicy> |
| 77 | <triggeringPolicy |
| 78 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 79 | <maxFileSize>10MB</maxFileSize> |
| 80 | </triggeringPolicy> |
| 81 | </appender> |
| 82 | <appender name="asyncEELFAudit" |
| 83 | class="ch.qos.logback.classic.AsyncAppender"> |
| 84 | <queueSize>256</queueSize> |
| 85 | <appender-ref ref="AUDIT" /> |
| 86 | </appender> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 87 | |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 88 | <appender name="METRIC" |
| 89 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 90 | <file>${logDirectory}/metric.log</file> |
| 91 | <append>true</append> |
| 92 | <encoder> |
| 93 | <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}| |
| 94 | %msg%n</pattern> |
| 95 | </encoder> |
| 96 | <rollingPolicy |
| 97 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 98 | <maxIndex>10</maxIndex> |
| 99 | <FileNamePattern>${logDirectory}/metric.%i.log.zip |
| 100 | </FileNamePattern> |
| 101 | </rollingPolicy> |
| 102 | <triggeringPolicy |
| 103 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 104 | <maxFileSize>10MB</maxFileSize> |
| 105 | </triggeringPolicy> |
| 106 | </appender> |
| 107 | <appender name="asyncEELFMetrics" |
| 108 | class="ch.qos.logback.classic.AsyncAppender"> |
| 109 | <queueSize>256</queueSize> |
| 110 | <appender-ref ref="METRIC" /> |
| 111 | </appender> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 112 | |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 113 | <!-- SECURITY related loggers --> |
| 114 | <appender name="SECURITY" |
| 115 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 116 | <file>${logDirectory}/security.log</file> |
| 117 | <append>true</append> |
| 118 | <encoder> |
| 119 | <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 |
| 120 | </pattern> |
| 121 | </encoder> |
| 122 | <rollingPolicy |
| 123 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 124 | <maxIndex>10</maxIndex> |
| 125 | <FileNamePattern>${logDirectory}/security.%i.log.zip |
| 126 | </FileNamePattern> |
| 127 | </rollingPolicy> |
| 128 | <triggeringPolicy |
| 129 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 130 | <maxFileSize>10MB</maxFileSize> |
| 131 | </triggeringPolicy> |
| 132 | </appender> |
| 133 | <appender name="asyncEELFSecurity" |
| 134 | class="ch.qos.logback.classic.AsyncAppender"> |
| 135 | <queueSize>256</queueSize> |
| 136 | <appender-ref ref="SECURITY" /> |
| 137 | </appender> |
| 138 | <!-- AAF related loggers --> |
| 139 | <logger name="org.onap.aaf" level="INFO" additivity="true"> |
| 140 | <appender-ref ref="DEBUG" /> |
| 141 | </logger> |
| 142 | <logger name="org.apache.catalina.core" level="INFO" |
| 143 | additivity="true"> |
| 144 | <appender-ref ref="DEBUG" /> |
| 145 | </logger> |
| 146 | <!-- CLDS related loggers --> |
| 147 | <logger name="org.onap.clamp.clds" level="INFO" |
| 148 | additivity="true"> |
| 149 | <appender-ref ref="ERROR" /> |
| 150 | </logger> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 151 | |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 152 | <!-- CLDS related loggers --> |
| 153 | <logger name="com.att.eelf.error" level="OFF" additivity="true"> |
| 154 | <appender-ref ref="ERROR" /> |
| 155 | </logger> |
| 156 | <!-- EELF related loggers --> |
| 157 | <logger name="com.att.eelf.audit" level="INFO" |
| 158 | additivity="false"> |
| 159 | <appender-ref ref="asyncEELFAudit" /> |
| 160 | </logger> |
| 161 | <logger name="com.att.eelf.metrics" level="DEBUG" |
| 162 | additivity="false"> |
| 163 | <appender-ref ref="asyncEELFMetrics" /> |
| 164 | </logger> |
| 165 | <logger name="com.att.eelf.security" level="DEBUG" |
| 166 | additivity="false"> |
| 167 | <appender-ref ref="asyncEELFSecurity" /> |
| 168 | </logger> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 169 | |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 170 | <!-- Spring related loggers --> |
| 171 | <logger name="org.springframework" level="DEBUG" /> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 172 | |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 173 | <!-- Other Loggers that may help troubleshoot --> |
| 174 | <logger name="org.apache" level="DEBUG" /> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 175 | |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 176 | <!-- logback internals logging --> |
| 177 | <logger name="ch.qos.logback.classic" level="INFO" /> |
| 178 | <logger name="ch.qos.logback.core" level="INFO" /> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 179 | |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 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 --> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 232 | |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 233 | <root level="DEBUG"> |
| 234 | <appender-ref ref="DEBUG" /> |
| 235 | <appender-ref ref="STDOUT" /> |
| 236 | </root> |
| 237 | </included> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 238 | |