Sylvain Desbureaux | 47eb4d2 | 2020-12-10 12:15:27 +0100 | [diff] [blame] | 1 | {{/* |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 2 | <!-- |
| 3 | |
| 4 | ============LICENSE_START======================================================= |
| 5 | org.onap.aai |
| 6 | ================================================================================ |
| 7 | Copyright © 2017 AT&T Intellectual Property. All rights reserved. |
| 8 | Modifications Copyright © 2018 Amdocs, Bell Canada |
| 9 | ================================================================================ |
| 10 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 11 | you may not use this file except in compliance with the License. |
| 12 | You may obtain a copy of the License at |
| 13 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 14 | http://www.apache.org/licenses/LICENSE-2.0 |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 15 | |
| 16 | Unless required by applicable law or agreed to in writing, software |
| 17 | distributed under the License is distributed on an "AS IS" BASIS, |
| 18 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 19 | See the License for the specific language governing permissions and |
| 20 | limitations under the License. |
| 21 | ============LICENSE_END========================================================= |
| 22 | |
| 23 | ECOMP is a trademark and service mark of AT&T Intellectual Property. |
| 24 | |
| 25 | --> |
Sylvain Desbureaux | 47eb4d2 | 2020-12-10 12:15:27 +0100 | [diff] [blame] | 26 | */}} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 27 | <configuration scan="true" scanPeriod="60 seconds" debug="false"> |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 28 | <statusListener class="ch.qos.logback.core.status.NopStatusListener" /> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 29 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 30 | <property resource="application.properties" /> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 31 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 32 | <property name="namespace" value="aai-resources"/> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 33 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 34 | <property name="AJSC_HOME" value="${AJSC_HOME:-.}" /> |
| 35 | <jmxConfigurator /> |
| 36 | <property name="logDirectory" value="${AJSC_HOME}/logs" /> |
| 37 | <!-- Old patterns |
| 38 | <property name="eelfLogPattern" value="%ecompStartTime|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%ecompServiceName|%X{partnerName}|%ecompStatusCode|%X{responseCode}|%replace(%replace(%X{responseDescription}){'\\|', '!'}){'\r|\n', '^'}|%X{instanceUUID}|%level|%X{severity}|%X{serverIpAddress}|%ecompElapsedTime|%X{server}|%X{clientIpAddress}|%eelfClassOfCaller|%X{unused}|%X{processKey}|%X{customField1}|%X{customField2}|%X{customField3}|%X{customField4}|co=%X{component}:%replace(%replace(%m){'\\|', '!'}){'\r|\n', '^'}%n"/> |
| 39 | <property name="eelfAuditLogPattern" value="%ecompStartTime|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%ecompServiceName|%X{partnerName}|%ecompStatusCode|%X{responseCode}|%replace(%replace(%X{responseDescription}){'\\|', '!'}){'\r|\n|\r\n', '^'}|%X{instanceUUID}|%level|%X{severity}|%X{serverIpAddress}|%ecompElapsedTime|%X{server}|%X{clientIpAddress}|%eelfClassOfCaller|%X{unused}|%X{processKey}|%X{customField1}|%X{customField2}|%X{customField3}|%X{customField4}|co=%X{component}:%replace(%replace(%m){'\\|', '!'}){'\r|\n', '^'}%n"/> |
| 40 | <property name="eelfMetricLogPattern" value="%ecompStartTime|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%ecompServiceName|%X{partnerName}|%X{targetEntity}|%X{targetServiceName}|%ecompStatusCode|%X{responseCode}|%replace(%replace(%X{responseDescription}){'\\|', '!'}){'\r|\n', '^'}|%X{instanceUUID}|%level|%X{severity}|%X{serverIpAddress}|%ecompElapsedTime|%X{server}|%X{clientIpAddress}|%eelfClassOfCaller|%X{unused}|%X{processKey}|%X{targetVirtualEntity}|%X{customField1}|%X{customField2}|%X{customField3}|%X{customField4}|co=%X{component}:%replace(%replace(%m){'\\|', '!'}){'\r|\n', '^'}%n"/> |
| 41 | <property name="eelfErrorLogPattern" value="%ecompStartTime|%X{requestId}|%-10t|%ecompServiceName|%X{partnerName}|%X{targetEntity}|%X{targetServiceName}|%ecompErrorCategory|%ecompResponseCode|%ecompResponseDescription|co=%X{component}:%replace(%replace(%m){'\\|', '!'}){'\r|\n', '^'}%n"/> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 42 | <property name="eelfTransLogPattern" value="%ecompStartTime|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{requestId}|%X{serviceInstanceId}|%-10t|%X{serverName}|%ecompServiceName|%X{partnerName}|%ecompStatusCode|%X{responseCode}|%replace(%replace(%X{responseDescription}){'\\|', '!'}){'\r|\n', '^'}|%X{instanceUUID}|%level|%X{severity}|%X{serverIpAddress}|%ecompElapsedTime|%X{server}|%X{clientIpAddress}|%eelfClassOfCaller|%X{unused}|%X{processKey}|%X{customField1}|%X{customField2}|%X{customField3}|%X{customField4}|co=%X{partnerName}:%m%n"/> |
| 43 | --> |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 44 | <property name="p_tim" value="%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", UTC}"/> |
| 45 | <property name="p_lvl" value="%level"/> |
| 46 | <property name="p_log" value="%logger"/> |
| 47 | <property name="p_mdc" value="%replace(%replace(%replace(%mdc){'\t','\\\\t'}){'\n', '\\\\n'}){'\\|', '!'}"/> |
| 48 | <property name="p_msg" value="%replace(%replace(%msg){'\t', '\\\\t'}){'\n','\\\\n'}"/> |
| 49 | <property name="p_exc" value="%replace(%replace(%rootException){'\t', '\\\\t'}){'\n','\\\\n'}"/> |
| 50 | <property name="p_mak" value="%replace(%replace(%marker){'\t', '\\\\t'}){'\n','\\\\n'}"/> |
| 51 | <property name="p_thr" value="%thread"/> |
| 52 | <property name="pattern" 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"/> |
| 53 | <!-- Patterns from onap demo --> |
| 54 | <property name="errorPattern" value="%X{LogTimestamp}|%X{RequestID}|%thread|%replace(%X{ServiceName}){'\\|', '!'}|%X{PartnerName}|%X{TargetEntity}|%replace(%X{TargetServiceName}){'\\|', '!'}|%.-5level|%X{ErrorCode}|%X{ErrorDesc}|%msg%n" /> |
| 55 | <property name="debugPattern" value="%X{LogTimestamp}|%X{RequestID}|%msg\t${p_mdc}\t${p_msg}\t${p_exc}\t${p_mak}\t|^%n" /> |
| 56 | <property name="auditPattern" value="%X{EntryTimestamp}|%X{LogTimestamp}|%X{RequestID}|%X{ServiceInstanceID}|%thread||%replace(%X{ServiceName}){'\\|', '!'}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}||||${p_mak}|${p_mdc}|||%msg%n" /> |
| 57 | <property name="metricPattern" value="%X{InvokeTimestamp}|%X{LogTimestamp}|%X{RequestID}|%X{ServiceInstanceID}|%thread||%replace(%X{ServiceName}){'\\|', '!'}|%X{PartnerName}|%X{TargetEntity}|%replace(%X{TargetServiceName}){'\\|', '!'}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}||||%X{TargetVirtualEntity}|${p_mak}|${p_mdc}|||%msg%n" /> |
| 58 | <property name="transLogPattern" value="%X{LogTimestamp}|%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}|%X{RequestID}|%X{ServiceInstanceID}|%-10t|%X{ServerFQDN}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%replace(%replace(%X{ResponseDesc}){'\\|', '!'}){'\r|\n', '^'}|%X{InstanceUUID}|%level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{clientIpAddress}||%X{unused}|%X{processKey}|%X{customField1}|%X{customField2}|%X{customField3}|%X{customField4}|co=%X{PartnerName}:%m%n"/> |
| 59 | <conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" /> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 60 | <conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" /> |
| 61 | <conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" /> |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 62 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
| 63 | <encoder> |
| 64 | <pattern> |
| 65 | %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx} |
| 66 | </pattern> |
| 67 | </encoder> |
| 68 | </appender> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 69 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 70 | <appender name="SANE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 71 | <file>${logDirectory}/rest/sane.log</file> |
| 72 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 73 | <fileNamePattern>${logDirectory}/rest/sane.log.%d{yyyy-MM-dd}</fileNamePattern> |
| 74 | </rollingPolicy> |
| 75 | <encoder> |
| 76 | <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n |
| 77 | </pattern> |
| 78 | </encoder> |
| 79 | </appender> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 80 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 81 | <appender name="asyncSANE" class="ch.qos.logback.classic.AsyncAppender"> |
| 82 | <queueSize>1000</queueSize> |
| 83 | <includeCallerData>true</includeCallerData> |
| 84 | <appender-ref ref="SANE" /> |
| 85 | </appender> |
| 86 | <appender name="METRIC" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 87 | <file>${logDirectory}/rest/metrics.log</file> |
| 88 | <rollingPolicy |
| 89 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 90 | <fileNamePattern>${logDirectory}/rest/metrics.log.%d{yyyy-MM-dd}</fileNamePattern> |
| 91 | </rollingPolicy> |
| 92 | <encoder> |
| 93 | <pattern>${metricPattern}</pattern> |
| 94 | </encoder> |
| 95 | </appender> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 96 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 97 | <appender name="asyncMETRIC" class="ch.qos.logback.classic.AsyncAppender"> |
| 98 | <queueSize>1000</queueSize> |
| 99 | <includeCallerData>true</includeCallerData> |
| 100 | <appender-ref ref="METRIC"/> |
| 101 | </appender> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 102 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 103 | <appender name="DEBUG" |
| 104 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 105 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 106 | <level>DEBUG</level> |
| 107 | <onMatch>ACCEPT</onMatch> |
| 108 | <onMismatch>DENY</onMismatch> |
| 109 | </filter> |
| 110 | <file>${logDirectory}/rest/debug.log</file> |
| 111 | <rollingPolicy |
| 112 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 113 | <fileNamePattern>${logDirectory}/rest/debug.log.%d{yyyy-MM-dd}</fileNamePattern> |
| 114 | </rollingPolicy> |
| 115 | <encoder> |
| 116 | <pattern>${debugPattern}</pattern> |
| 117 | </encoder> |
| 118 | </appender> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 119 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 120 | <appender name="asyncDEBUG" class="ch.qos.logback.classic.AsyncAppender"> |
| 121 | <queueSize>1000</queueSize> |
| 122 | <appender-ref ref="DEBUG" /> |
| 123 | <includeCallerData>true</includeCallerData> |
| 124 | </appender> |
| 125 | <appender name="ERROR" |
| 126 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 127 | <file>${logDirectory}/rest/error.log</file> |
| 128 | <rollingPolicy |
| 129 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 130 | <fileNamePattern>${logDirectory}/rest/error.log.%d{yyyy-MM-dd}</fileNamePattern> |
| 131 | </rollingPolicy> |
| 132 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 133 | <level>WARN</level> |
| 134 | </filter> |
| 135 | <encoder> |
| 136 | <pattern>${errorPattern}</pattern> |
| 137 | </encoder> |
| 138 | </appender> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 139 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 140 | <appender name="asyncERROR" class="ch.qos.logback.classic.AsyncAppender"> |
| 141 | <queueSize>1000</queueSize> |
| 142 | <appender-ref ref="ERROR"/> |
| 143 | </appender> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 144 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 145 | <appender name="AUDIT" |
| 146 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 147 | <file>${logDirectory}/rest/audit.log</file> |
| 148 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 149 | <fileNamePattern>${logDirectory}/rest/audit.log.%d{yyyy-MM-dd} |
| 150 | </fileNamePattern> |
| 151 | </rollingPolicy> |
| 152 | <encoder> |
| 153 | <pattern>${auditPattern}</pattern> |
| 154 | </encoder> |
| 155 | </appender> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 156 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 157 | <appender name="asyncAUDIT" class="ch.qos.logback.classic.AsyncAppender"> |
| 158 | <queueSize>1000</queueSize> |
| 159 | <includeCallerData>true</includeCallerData> |
| 160 | <appender-ref ref="AUDIT" /> |
| 161 | </appender> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 162 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 163 | <appender name="translog" |
| 164 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 165 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 166 | <level>DEBUG</level> |
| 167 | <onMatch>ACCEPT</onMatch> |
| 168 | <onMismatch>DENY</onMismatch> |
| 169 | </filter> |
| 170 | <file>${logDirectory}/rest/translog.log</file> |
| 171 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 172 | <fileNamePattern>${logDirectory}/rest/translog.log.%d{yyyy-MM-dd} |
| 173 | </fileNamePattern> |
| 174 | </rollingPolicy> |
| 175 | <encoder> |
| 176 | <pattern>${transLogPattern}</pattern> |
| 177 | </encoder> |
| 178 | </appender> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 179 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 180 | <appender name="asynctranslog" class="ch.qos.logback.classic.AsyncAppender"> |
| 181 | <queueSize>1000</queueSize> |
| 182 | <includeCallerData>true</includeCallerData> |
| 183 | <appender-ref ref="translog" /> |
| 184 | </appender> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 185 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 186 | <appender name="dmaapAAIEventConsumer" |
| 187 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 188 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 189 | <level>WARN</level> |
| 190 | </filter> |
| 191 | <File>${logDirectory}/dmaapAAIEventConsumer/error.log</File> |
| 192 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 193 | <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/error.log.%d{yyyy-MM-dd} |
| 194 | </fileNamePattern> |
| 195 | </rollingPolicy> |
| 196 | <encoder> |
| 197 | <pattern>${errorPattern}</pattern> |
| 198 | </encoder> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 199 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 200 | </appender> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 201 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 202 | <appender name="dmaapAAIEventConsumerDebug" |
| 203 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 204 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 205 | <level>DEBUG</level> |
| 206 | <onMatch>ACCEPT</onMatch> |
| 207 | <onMismatch>DENY</onMismatch> |
| 208 | </filter> |
| 209 | <File>${logDirectory}/dmaapAAIEventConsumer/debug.log</File> |
| 210 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 211 | <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/debug.log.%d{yyyy-MM-dd} |
| 212 | </fileNamePattern> |
| 213 | </rollingPolicy> |
| 214 | <encoder> |
| 215 | <pattern>${debugPattern}</pattern> |
| 216 | </encoder> |
| 217 | </appender> |
| 218 | <appender name="dmaapAAIEventConsumerInfo" |
| 219 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 220 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 221 | <level>INFO</level> |
| 222 | <onMatch>ACCEPT</onMatch> |
| 223 | <onMismatch>DENY</onMismatch> |
| 224 | </filter> |
| 225 | <File>${logDirectory}/dmaapAAIEventConsumer/dmaap-transaction.log</File> |
| 226 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 227 | <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/dmaap-transaction.log.%d{yyyy-MM-dd} |
| 228 | </fileNamePattern> |
| 229 | </rollingPolicy> |
| 230 | <encoder> |
| 231 | <pattern>${auditPattern}</pattern> |
| 232 | </encoder> |
| 233 | </appender> |
| 234 | <appender name="dmaapAAIEventConsumerMetric" |
| 235 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 236 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 237 | <level>INFO</level> |
| 238 | <onMatch>ACCEPT</onMatch> |
| 239 | <onMismatch>DENY</onMismatch> |
| 240 | </filter> |
| 241 | <File>${logDirectory}/dmaapAAIEventConsumer/metrics.log</File> |
| 242 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 243 | <fileNamePattern>${logDirectory}/dmaapAAIEventConsumer/metrics.log.%d{yyyy-MM-dd} |
| 244 | </fileNamePattern> |
| 245 | </rollingPolicy> |
| 246 | <encoder> |
| 247 | <pattern>${metricPattern}</pattern> |
| 248 | </encoder> |
| 249 | </appender> |
| 250 | <appender name="external" |
| 251 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 252 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 253 | <level>WARN</level> |
| 254 | </filter> |
| 255 | <file>${logDirectory}/external/external.log</file> |
| 256 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 257 | <fileNamePattern>${logDirectory}/external/external.log.%d{yyyy-MM-dd} |
| 258 | </fileNamePattern> |
| 259 | </rollingPolicy> |
| 260 | <encoder> |
| 261 | <pattern>${debugPattern}</pattern> |
| 262 | </encoder> |
| 263 | </appender> |
| 264 | <appender name="auth" |
| 265 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 266 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 267 | <level>DEBUG</level> |
| 268 | </filter> |
| 269 | <file>${logDirectory}/auth/auth.log</file> |
| 270 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 271 | <fileNamePattern>${logDirectory}/auth/auth.log.%d{yyyy-MM-dd} |
| 272 | </fileNamePattern> |
| 273 | </rollingPolicy> |
| 274 | <encoder> |
| 275 | <pattern>%d{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}[%thread] %-5level %logger{1024} - %msg%n</pattern> |
| 276 | </encoder> |
| 277 | </appender> |
| 278 | <appender name="asyncAUTH" class="ch.qos.logback.classic.AsyncAppender"> |
| 279 | <queueSize>1000</queueSize> |
| 280 | <includeCallerData>true</includeCallerData> |
| 281 | <appender-ref ref="auth" /> |
| 282 | </appender> |
| 283 | <!-- logback internals logging --> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 284 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 285 | <logger name="ch.qos.logback.classic" level="WARN" /> |
| 286 | <logger name="ch.qos.logback.core" level="WARN" /> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 287 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 288 | <logger name="com.att.aft.dme2" level="WARN" /> |
| 289 | <logger name="com.jayway.jsonpath" level="WARN" /> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 290 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 291 | <logger name="org.apache" level="OFF" /> |
| 292 | <logger name="org.apache.commons" level="WARN" /> |
| 293 | <logger name="org.apache.zookeeper" level="OFF" /> |
| 294 | <logger name="org.codehaus.groovy" level="WARN" /> |
| 295 | <logger name="org.eclipse.jetty" level="WARN" /> |
| 296 | <!-- Spring related loggers --> |
| 297 | <logger name="org.springframework" level="WARN" /> |
| 298 | <logger name="org.springframework.beans" level="WARN" /> |
| 299 | <logger name="org.springframework.web" level="WARN" /> |
| 300 | <logger name="org.janusgraph" level="WARN" /> |
| 301 | <logger name="org.zookeeper" level="OFF" /> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 302 | |
| 303 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 304 | <logger name="org.onap.aai" level="DEBUG" additivity="false"> |
| 305 | <appender-ref ref="asyncDEBUG" /> |
| 306 | <appender-ref ref="asyncSANE" /> |
| 307 | <appender-ref ref="STDOUT" /> |
| 308 | </logger> |
| 309 | <logger name="org.onap.aai.aaf.auth" level="DEBUG" additivity="false"> |
| 310 | <appender-ref ref="asyncAUTH" /> |
| 311 | <appender-ref ref="STDOUT" /> |
| 312 | </logger> |
| 313 | <logger name="org.onap.aai.aailog.logs.AaiScheduledTaskAuditLog" level="INFO"> |
| 314 | <appender-ref ref="asyncAUDIT"/> |
| 315 | </logger> |
| 316 | <logger name="org.onap.logging.filter.base.AbstractAuditLogFilter" level="INFO"> |
| 317 | <appender-ref ref="asyncAUDIT"/> |
| 318 | </logger> |
| 319 | <logger name="org.onap.aai.aailog.logs.AaiDBMetricLog" level="INFO"> |
| 320 | <appender-ref ref="asyncMETRIC"/> |
| 321 | </logger> |
| 322 | <logger name="org.onap.aai.aailog.logs.AaiDmaapMetricLog" level="INFO"> |
| 323 | <appender-ref ref="dmaapAAIEventConsumerMetric"/> |
| 324 | </logger> |
| 325 | <logger name="org.onap.aai.logging.ErrorLogHelper" level="WARN"> |
| 326 | <appender-ref ref="asyncERROR"/> |
| 327 | </logger> |
| 328 | <logger name="org.onap.aai.interceptors.post" level="DEBUG" additivity="false"> |
| 329 | <appender-ref ref="asynctranslog" /> |
| 330 | <appender-ref ref="STDOUT" /> |
| 331 | </logger> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 332 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 333 | <logger name="org.onap.aai.dmaap" level="DEBUG" additivity="false"> |
| 334 | <appender-ref ref="dmaapAAIEventConsumer" /> |
| 335 | <appender-ref ref="dmaapAAIEventConsumerDebug" /> |
| 336 | </logger> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 337 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 338 | <logger name="com.att.nsa.mr" level="INFO" > |
| 339 | <appender-ref ref="dmaapAAIEventConsumerInfo" /> |
| 340 | </logger> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 341 | |
Sylvain Desbureaux | b4e038d | 2020-12-15 12:00:26 +0100 | [diff] [blame] | 342 | <root level="DEBUG"> |
| 343 | <appender-ref ref="external" /> |
| 344 | <appender-ref ref="STDOUT" /> |
| 345 | </root> |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 346 | </configuration> |