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