ecaiyanlinux | 845bc00 | 2020-08-12 12:57:09 +0200 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
ecaiyanlinux | 4b0a0a2 | 2020-08-17 13:29:16 +0200 | [diff] [blame] | 3 | Copyright © 2020 Nordix Foundation. All rights reserved. |
ecaiyanlinux | 845bc00 | 2020-08-12 12:57:09 +0200 | [diff] [blame] | 4 | Copyright © 2019 AT&T Intellectual Property. All rights reserved. |
| 5 | ================================================================================ |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | ============LICENSE_END========================================================= |
| 17 | --> |
| 18 | |
| 19 | <configuration scan="true" scanPeriod="3 seconds" debug="false"> |
| 20 | <contextName>${module.ajsc.namespace.name}</contextName> |
| 21 | <jmxConfigurator /> |
| 22 | <property name="logDirectory" value="${AJSC_HOME}/log" /> |
| 23 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
| 24 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 25 | <level>ERROR</level> |
| 26 | <onMatch>ACCEPT</onMatch> |
| 27 | <onMismatch>DENY</onMismatch> |
| 28 | </filter> |
| 29 | <encoder> |
| 30 | <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n |
| 31 | </pattern> |
| 32 | </encoder> |
| 33 | </appender> |
| 34 | |
| 35 | <appender name="INFO" class="ch.qos.logback.core.ConsoleAppender"> |
| 36 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 37 | <level>INFO</level> |
| 38 | <onMatch>ACCEPT</onMatch> |
| 39 | <onMismatch>DENY</onMismatch> |
| 40 | </filter> |
| 41 | </appender> |
| 42 | |
| 43 | <appender name="DEBUG" class="ch.qos.logback.core.ConsoleAppender"> |
| 44 | |
| 45 | <encoder> |
| 46 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 47 | </encoder> |
| 48 | </appender> |
| 49 | |
| 50 | <appender name="ERROR" class="ch.qos.logback.core.ConsoleAppender"> class="ch.qos.logback.core.ConsoleAppender"> |
| 51 | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 52 | <level>ERROR</level> |
| 53 | <onMatch>ACCEPT</onMatch> |
| 54 | <onMismatch>DENY</onMismatch> |
| 55 | </filter> |
| 56 | <encoder> |
| 57 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 58 | </encoder> |
| 59 | </appender> |
| 60 | |
| 61 | |
| 62 | <!-- Msgrtr related loggers --> |
| 63 | <logger name="org.onap.dmaap.dmf.mr.service" level="INFO" /> |
| 64 | <logger name="org.onap.dmaap.dmf.mr.service.impl" level="INFO" /> |
| 65 | |
| 66 | <logger name="org.onap.dmaap.dmf.mr.resources" level="INFO" /> |
| 67 | <logger name="org.onap.dmaap.dmf.mr.resources.streamReaders" level="INFO" /> |
| 68 | |
| 69 | <logger name="org.onap.dmaap.dmf.mr.backends" level="INFO" /> |
| 70 | <logger name="org.onap.dmaap.dmf.mr.backends.kafka" level="INFO" /> |
| 71 | <logger name="org.onap.dmaap.dmf.mr.backends.memory" level="INFO" /> |
| 72 | |
| 73 | <logger name="org.onap.dmaap.dmf.mr.beans" level="INFO" /> |
| 74 | |
| 75 | <logger name="org.onap.dmaap.dmf.mr.constants" level="INFO" /> |
| 76 | |
| 77 | <logger name="org.onap.dmaap.dmf.mr.exception" level="INFO" /> |
| 78 | |
| 79 | <logger name="org.onap.dmaap.dmf.mr.listener" level="INFO" /> |
| 80 | |
| 81 | <logger name="org.onap.dmaap.dmf.mr.metabroker" level="INFO" /> |
| 82 | |
| 83 | <logger name="org.onap.dmaap.dmf.mr.metrics.publisher" level="INFO" /> |
| 84 | <logger name="org.onap.dmaap.dmf.mr.metrics.publisher.impl" level="INFO" /> |
| 85 | |
| 86 | |
| 87 | |
| 88 | <logger name="org.onap.dmaap.dmf.mr.security" level="INFO" /> |
| 89 | <logger name="org.onap.dmaap.dmf.mr.security.impl" level="INFO" /> |
| 90 | |
| 91 | <logger name="org.onap.dmaap.dmf.mr.transaction" level="INFO" /> |
| 92 | <logger name="com.att.dmf.mr.transaction.impl" level="INFO" /> |
| 93 | |
| 94 | <logger name="org.onap.dmaap.dmf.mr.metabroker" level="INFO" /> |
| 95 | <logger name="org.onap.dmaap.dmf.mr.metabroker" level="INFO" /> |
| 96 | |
| 97 | <logger name="org.onap.dmaap.dmf.mr.utils" level="INFO" /> |
| 98 | <logger name="org.onap.dmaap.mr.filter" level="INFO" /> |
| 99 | |
| 100 | <!--<logger name="com.att.nsa.cambria.*" level="INFO" />--> |
| 101 | |
| 102 | <!-- Msgrtr loggers in ajsc --> |
| 103 | <logger name="org.onap.dmaap.service" level="INFO" /> |
| 104 | <logger name="org.onap.dmaap" level="INFO" /> |
| 105 | |
| 106 | |
| 107 | <!-- Spring related loggers --> |
| 108 | <logger name="org.springframework" level="WARN" additivity="false"/> |
| 109 | <logger name="org.springframework.beans" level="WARN" additivity="false"/> |
| 110 | <logger name="org.springframework.web" level="WARN" additivity="false" /> |
| 111 | <logger name="com.blog.spring.jms" level="WARN" additivity="false" /> |
| 112 | |
| 113 | <!-- AJSC Services (bootstrap services) --> |
| 114 | <logger name="ajsc" level="WARN" additivity="false"/> |
| 115 | <logger name="ajsc.RouteMgmtService" level="INFO" additivity="false"/> |
| 116 | <logger name="ajsc.ComputeService" level="INFO" additivity="false" /> |
| 117 | <logger name="ajsc.VandelayService" level="WARN" additivity="false"/> |
| 118 | <logger name="ajsc.FilePersistenceService" level="WARN" additivity="false"/> |
| 119 | <logger name="ajsc.UserDefinedJarService" level="WARN" additivity="false" /> |
| 120 | <logger name="ajsc.UserDefinedBeansDefService" level="WARN" additivity="false" /> |
| 121 | <logger name="ajsc.LoggingConfigurationService" level="WARN" additivity="false" /> |
| 122 | |
| 123 | <!-- AJSC related loggers (DME2 Registration, csi logging, restlet, servlet |
| 124 | logging) --> |
| 125 | <logger name="ajsc.utils" level="WARN" additivity="false"/> |
| 126 | <logger name="ajsc.utils.DME2Helper" level="INFO" additivity="false" /> |
| 127 | <logger name="ajsc.filters" level="DEBUG" additivity="false" /> |
| 128 | <logger name="ajsc.beans.interceptors" level="DEBUG" additivity="false" /> |
| 129 | <logger name="ajsc.restlet" level="DEBUG" additivity="false" /> |
| 130 | <logger name="ajsc.servlet" level="DEBUG" additivity="false" /> |
| 131 | <logger name="com.att" level="WARN" additivity="false" /> |
| 132 | <logger name="com.att.ajsc.csi.logging" level="WARN" additivity="false" /> |
| 133 | <logger name="com.att.ajsc.filemonitor" level="WARN" additivity="false"/> |
| 134 | |
| 135 | <logger name="com.att.nsa.dmaap.util" level="INFO" additivity="false"/> |
| 136 | <logger name="com.att.cadi.filter" level="INFO" additivity="false" /> |
| 137 | |
| 138 | |
| 139 | <!-- Other Loggers that may help troubleshoot --> |
| 140 | <logger name="net.sf" level="WARN" additivity="false" /> |
| 141 | <logger name="org.apache.commons.httpclient" level="WARN" additivity="false"/> |
| 142 | <logger name="org.apache.commons" level="WARN" additivity="false" /> |
| 143 | <logger name="org.apache.coyote" level="WARN" additivity="false"/> |
| 144 | <logger name="org.apache.jasper" level="WARN" additivity="false"/> |
| 145 | |
| 146 | <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging. |
| 147 | May aid in troubleshooting) --> |
| 148 | <logger name="org.apache.camel" level="WARN" additivity="false" /> |
| 149 | <logger name="org.apache.cxf" level="WARN" additivity="false" /> |
| 150 | <logger name="org.apache.camel.processor.interceptor" level="WARN" additivity="false"/> |
| 151 | <logger name="org.apache.cxf.jaxrs.interceptor" level="WARN" additivity="false" /> |
| 152 | <logger name="org.apache.cxf.service" level="WARN" additivity="false" /> |
| 153 | <logger name="org.restlet" level="DEBUG" additivity="false" /> |
| 154 | <logger name="org.apache.camel.component.restlet" level="DEBUG" additivity="false" /> |
| 155 | <logger name="org.apache.kafka" level="DEBUG" additivity="false" /> |
| 156 | <logger name="org.apache.zookeeper" level="INFO" additivity="false" /> |
| 157 | <logger name="org.I0Itec.zkclient" level="DEBUG" additivity="false" /> |
| 158 | |
| 159 | <!-- logback internals logging --> |
| 160 | <logger name="ch.qos.logback.classic" level="INFO" additivity="false"/> |
| 161 | <logger name="ch.qos.logback.core" level="INFO" additivity="false" /> |
| 162 | |
| 163 | <!-- logback jms appenders & loggers definition starts here --> |
| 164 | <!-- logback jms appenders & loggers definition starts here --> |
| 165 | <appender name="auditLogs" class="ch.qos.logback.core.ConsoleAppender"> |
| 166 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 167 | </filter> |
| 168 | <encoder> |
| 169 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 170 | </encoder> |
| 171 | </appender> |
| 172 | <appender name="perfLogs" class="ch.qos.logback.core.ConsoleAppender"> |
| 173 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 174 | </filter> |
| 175 | <encoder> |
| 176 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 177 | </encoder> |
| 178 | </appender> |
| 179 | <appender name="ASYNC-audit" class="ch.qos.logback.classic.AsyncAppender"> |
| 180 | <queueSize>1000</queueSize> |
| 181 | <discardingThreshold>0</discardingThreshold> |
| 182 | <appender-ref ref="Audit-Record-Queue" /> |
| 183 | </appender> |
| 184 | |
| 185 | <logger name="AuditRecord" level="INFO" additivity="FALSE"> |
| 186 | <appender-ref ref="STDOUT" /> |
| 187 | </logger> |
| 188 | <logger name="AuditRecord_DirectCall" level="INFO" additivity="FALSE"> |
| 189 | <appender-ref ref="STDOUT" /> |
| 190 | </logger> |
| 191 | <appender name="ASYNC-perf" class="ch.qos.logback.classic.AsyncAppender"> |
| 192 | <queueSize>1000</queueSize> |
| 193 | <discardingThreshold>0</discardingThreshold> |
| 194 | <appender-ref ref="Performance-Tracker-Queue" /> |
| 195 | </appender> |
| 196 | <logger name="PerfTrackerRecord" level="INFO" additivity="FALSE"> |
| 197 | <appender-ref ref="ASYNC-perf" /> |
| 198 | <appender-ref ref="perfLogs" /> |
| 199 | </logger> |
| 200 | <!-- logback jms appenders & loggers definition ends here --> |
| 201 | |
| 202 | <root level="DEBUG"> |
| 203 | <appender-ref ref="DEBUG" /> |
| 204 | <appender-ref ref="ERROR" /> |
| 205 | <appender-ref ref="INFO" /> |
| 206 | <appender-ref ref="STDOUT" /> |
| 207 | </root> |
| 208 | |
| 209 | </configuration> |