Shwetank Dave | a1fe2fb | 2018-08-14 09:55:46 -0400 | [diff] [blame] | 1 | <!-- |
| 2 | Copyright © 2018 Amdocs, AT&T |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <configuration scan="true" scanPeriod="3 seconds" debug="true"> |
| 18 | <!-- Service-specific properties --> |
| 19 | <property name="componentName" value="AAI-CHAMP" /> |
| 20 | |
| 21 | <!-- directory path for logs --> |
| 22 | <property name="logDir" value="/var/log/onap" /> |
| 23 | <property name="logDirectory" value="${logDir}/${componentName}" /> |
| 24 | |
| 25 | <!-- default eelf log file names --> |
| 26 | <property name="generalLogName" value="error" /> |
| 27 | <property name="metricsLogName" value="metrics" /> |
| 28 | <property name="auditLogName" value="audit" /> |
| 29 | <property name="debugLogName" value="debug" /> |
| 30 | |
| 31 | <property name="errorLogPattern" value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%mdc{RequestId}|%thread|Champ|%mdc{PartnerName}|%logger||%.-5level|%msg%n" /> |
| 32 | <property name="auditMetricPattern" value="%m%n" /> |
| 33 | |
| 34 | <!-- Example evaluator filter applied against console appender --> |
| 35 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
| 36 | <encoder> |
| 37 | <pattern>${errorLogPattern}</pattern> |
| 38 | </encoder> |
| 39 | </appender> |
| 40 | |
| 41 | <!-- ============================================================================ --> |
| 42 | <!-- EELF Appenders --> |
| 43 | <!-- ============================================================================ --> |
| 44 | |
| 45 | <appender name="EELF" |
| 46 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 47 | <file>${logDirectory}/${generalLogName}.log</file> |
| 48 | <rollingPolicy |
| 49 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 50 | <fileNamePattern>${logDirectory}/${generalLogName}.%d{yyyy-MM-dd}.log.zip |
| 51 | </fileNamePattern> |
| 52 | <maxHistory>60</maxHistory> |
| 53 | </rollingPolicy> |
| 54 | <encoder> |
| 55 | <pattern>${errorLogPattern}</pattern> |
| 56 | </encoder> |
| 57 | </appender> |
| 58 | <appender name="asyncEELF" class="ch.qos.logback.classic.AsyncAppender"> |
| 59 | <!-- deny all events with a level below INFO, that is TRACE and DEBUG --> |
| 60 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 61 | <level>INFO</level> |
| 62 | </filter> |
| 63 | <queueSize>256</queueSize> |
| 64 | <appender-ref ref="EELF" /> |
| 65 | </appender> |
| 66 | |
| 67 | <appender name="EELFAudit" |
| 68 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 69 | <file>${logDirectory}/${auditLogName}.log</file> |
| 70 | <rollingPolicy |
| 71 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 72 | <fileNamePattern>${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.log.zip |
| 73 | </fileNamePattern> |
| 74 | <maxHistory>60</maxHistory> |
| 75 | </rollingPolicy> |
| 76 | <encoder> |
| 77 | <pattern>${auditMetricPattern}</pattern> |
| 78 | </encoder> |
| 79 | </appender> |
| 80 | <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender"> |
| 81 | <queueSize>256</queueSize> |
| 82 | <appender-ref ref="EELFAudit" /> |
| 83 | </appender> |
| 84 | |
| 85 | <appender name="EELFMetrics" |
| 86 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 87 | <file>${logDirectory}/${metricsLogName}.log</file> |
| 88 | <rollingPolicy |
| 89 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 90 | <fileNamePattern>${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.log.zip |
| 91 | </fileNamePattern> |
| 92 | <maxHistory>60</maxHistory> |
| 93 | </rollingPolicy> |
| 94 | <encoder> |
| 95 | <pattern>${auditMetricPattern}</pattern> |
| 96 | </encoder> |
| 97 | </appender> |
| 98 | |
| 99 | <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender"> |
| 100 | <queueSize>256</queueSize> |
| 101 | <appender-ref ref="EELFMetrics"/> |
| 102 | </appender> |
| 103 | |
| 104 | <appender name="EELFDebug" |
| 105 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 106 | <file>${logDirectory}/${debugLogName}.log</file> |
| 107 | <rollingPolicy |
| 108 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 109 | <fileNamePattern>${logDirectory}/${debugLogName}.%d{yyyy-MM-dd}.log.zip |
| 110 | </fileNamePattern> |
| 111 | <maxHistory>60</maxHistory> |
| 112 | </rollingPolicy> |
| 113 | <encoder> |
| 114 | <pattern>${errorLogPattern}</pattern> |
| 115 | </encoder> |
| 116 | </appender> |
| 117 | |
| 118 | <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender"> |
| 119 | <queueSize>256</queueSize> |
| 120 | <appender-ref ref="EELFDebug" /> |
| 121 | <includeCallerData>false</includeCallerData> |
| 122 | </appender> |
| 123 | |
| 124 | <!-- ============================================================================ --> |
| 125 | <!-- EELF loggers --> |
| 126 | <!-- ============================================================================ --> |
| 127 | <logger name="com.att.eelf" level="info" additivity="false"> |
| 128 | <appender-ref ref="asyncEELF" /> |
| 129 | <appender-ref ref="asyncEELFDebug" /> |
| 130 | </logger> |
| 131 | |
| 132 | <logger name="com.att.eelf.audit" level="info" additivity="false"> |
| 133 | <appender-ref ref="asyncEELFAudit" /> |
| 134 | </logger> |
| 135 | |
| 136 | <logger name="com.att.eelf.metrics" level="info" additivity="false"> |
| 137 | <appender-ref ref="asyncEELFMetrics" /> |
| 138 | </logger> |
| 139 | |
| 140 | <!-- Spring related loggers --> |
| 141 | <logger name="org.springframework" level="WARN" /> |
| 142 | <logger name="org.springframework.beans" level="WARN" /> |
| 143 | <logger name="org.springframework.web" level="WARN" /> |
| 144 | <logger name="com.blog.spring.jms" level="WARN" /> |
| 145 | |
| 146 | <!-- AJSC Services (bootstrap services) --> |
| 147 | <logger name="ajsc" level="WARN" /> |
| 148 | <logger name="ajsc.RouteMgmtService" level="WARN" /> |
| 149 | <logger name="ajsc.ComputeService" level="WARN" /> |
| 150 | <logger name="ajsc.VandelayService" level="WARN" /> |
| 151 | <logger name="ajsc.FilePersistenceService" level="WARN" /> |
| 152 | <logger name="ajsc.UserDefinedJarService" level="WARN" /> |
| 153 | <logger name="ajsc.UserDefinedBeansDefService" level="WARN" /> |
| 154 | <logger name="ajsc.LoggingConfigurationService" level="WARN" /> |
| 155 | |
| 156 | <!-- AJSC related loggers --> |
| 157 | <logger name="ajsc.restlet" level="WARN" /> |
| 158 | <logger name="ajsc.servlet" level="WARN" /> |
| 159 | |
| 160 | <!-- General loggers --> |
| 161 | <logger name="com.att" level="INFO" /> |
| 162 | <logger name="org.onap" level="INFO" /> |
| 163 | <logger name="org.openecomp" level="INFO" /> |
| 164 | |
| 165 | <!-- Other Loggers that may help troubleshoot --> |
| 166 | <logger name="net.sf" level="WARN" /> |
| 167 | <logger name="org.apache.commons.httpclient" level="WARN" /> |
| 168 | <logger name="org.apache.commons" level="WARN" /> |
| 169 | <logger name="org.apache.coyote" level="WARN" /> |
| 170 | <logger name="org.apache.jasper" level="WARN" /> |
| 171 | |
| 172 | <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging. |
| 173 | May aid in troubleshooting) --> |
| 174 | <logger name="org.apache.camel" level="WARN" /> |
| 175 | <logger name="org.apache.cxf" level="WARN" /> |
| 176 | <logger name="org.apache.camel.processor.interceptor" level="WARN" /> |
| 177 | <logger name="org.apache.cxf.jaxrs.interceptor" level="WARN" /> |
| 178 | <logger name="org.apache.cxf.service" level="WARN" /> |
| 179 | <logger name="org.restlet" level="WARN" /> |
| 180 | <logger name="org.apache.camel.component.restlet" level="WARN" /> |
| 181 | |
| 182 | <!-- logback internals logging --> |
| 183 | <logger name="ch.qos.logback.classic" level="WARN" /> |
| 184 | <logger name="ch.qos.logback.core" level="WARN" /> |
| 185 | |
| 186 | <root> |
| 187 | <appender-ref ref="asyncEELF" /> |
| 188 | <!-- <appender-ref ref="asyncEELFDebug" /> --> |
| 189 | </root> |
| 190 | |
| 191 | </configuration> |