blob: adfed4aa6034fbee59256c2ed59677a8a6abb7d1 [file] [log] [blame]
toshrajbhardwaj84d73b12018-08-06 07:35:14 +00001<!--
2# Copyright © 2018 Amdocs, Bell Canada, 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
Keren Joseph6ba90952018-04-17 09:54:11 +030017<configuration scan="true" scanPeriod="3 seconds" debug="false">
18 <!--<jmxConfigurator /> -->
19 <!-- directory path for all other type logs -->
20
21 <property name="logDir" value="/var/log/onap" />
22
23
24 <!-- specify the component name
25 <ECOMP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" -->
26 <property name="componentName" value="AAI-SDB"></property>
27
28 <!-- default eelf log file names -->
29 <property name="generalLogName" value="error" />
30 <property name="metricsLogName" value="metrics" />
31 <property name="auditLogName" value="audit" />
32 <property name="debugLogName" value="debug" />
33
34 <property name="errorLogPattern" value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%mdc{RequestId}|%thread|SearchDataService|%mdc{PartnerName}|%logger||%.-5level|%msg%n" />
35 <property name="auditMetricPattern" value="%m%n" />
36
37 <property name="logDirectory" value="${logDir}/${componentName}" />
38
39 <!-- Example evaluator filter applied against console appender -->
40 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
41 <encoder>
42 <pattern>${errorLogPattern}</pattern>
43 </encoder>
44 </appender>
45
46 <!-- ============================================================================ -->
47 <!-- EELF Appenders -->
48 <!-- ============================================================================ -->
49
50 <!-- The EELFAppender is used to record events to the general application
51 log -->
52
53 <appender name="EELF"
54 class="ch.qos.logback.core.rolling.RollingFileAppender">
55 <file>${logDirectory}/${generalLogName}.log</file>
56 <rollingPolicy
57 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
58 <fileNamePattern>${logDirectory}/${generalLogName}.%d{yyyy-MM-dd}.log.zip
59 </fileNamePattern>
60 <maxHistory>60</maxHistory>
61 </rollingPolicy>
62 <encoder>
63 <pattern>${errorLogPattern}</pattern>
64 </encoder>
65 </appender>
66 <appender name="asyncEELF" class="ch.qos.logback.classic.AsyncAppender">
67 <!-- deny all events with a level below INFO, that is TRACE and DEBUG -->
68 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
69 <level>INFO</level>
70 </filter>
71 <queueSize>256</queueSize>
72 <appender-ref ref="EELF" />
73 </appender>
74
75
76 <!-- EELF Audit Appender. This appender is used to record audit engine
77 related logging events. The audit logger and appender are specializations
78 of the EELF application root logger and appender. This can be used to segregate
79 Policy engine events from other components, or it can be eliminated to record
80 these events as part of the application root log. -->
81
82 <appender name="EELFAudit"
83 class="ch.qos.logback.core.rolling.RollingFileAppender">
84 <file>${logDirectory}/${auditLogName}.log</file>
85 <rollingPolicy
86 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
87 <fileNamePattern>${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.log.zip
88 </fileNamePattern>
89 <maxHistory>60</maxHistory>
90 </rollingPolicy>
91 <encoder>
92 <pattern>${auditMetricPattern}</pattern>
93 </encoder>
94 </appender>
95 <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
96 <queueSize>256</queueSize>
97 <appender-ref ref="EELFAudit" />
98 </appender>
99
100 <appender name="EELFMetrics"
101 class="ch.qos.logback.core.rolling.RollingFileAppender">
102 <file>${logDirectory}/${metricsLogName}.log</file>
103 <rollingPolicy
104 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
105 <fileNamePattern>${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.log.zip
106 </fileNamePattern>
107 <maxHistory>60</maxHistory>
108 </rollingPolicy>
109 <encoder>
110 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
111 %msg%n"</pattern> -->
112 <pattern>${auditMetricPattern}</pattern>
113 </encoder>
114 </appender>
115
116
117 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
118 <queueSize>256</queueSize>
119 <appender-ref ref="EELFMetrics"/>
120 </appender>
121
122 <appender name="EELFDebug"
123 class="ch.qos.logback.core.rolling.RollingFileAppender">
124 <file>${logDirectory}/${debugLogName}.log</file>
125 <rollingPolicy
126 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
127 <fileNamePattern>${logDirectory}/${debugLogName}.%d{yyyy-MM-dd}.log.zip
128 </fileNamePattern>
129 <maxHistory>60</maxHistory>
130 </rollingPolicy>
131 <encoder>
132 <pattern>${errorLogPattern}</pattern>
133 </encoder>
134 </appender>
135
136 <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
137 <queueSize>256</queueSize>
138 <appender-ref ref="EELFDebug" />
139 <includeCallerData>false</includeCallerData>
140 </appender>
141
142
143 <!-- ============================================================================ -->
144 <!-- EELF loggers -->
145 <!-- ============================================================================ -->
146 <logger name="com.att.eelf" level="info" additivity="false">
147 <appender-ref ref="asyncEELF" />
148 <appender-ref ref="asyncEELFDebug" />
149 </logger>
150
151 <logger name="com.att.eelf.audit" level="info" additivity="false">
152 <appender-ref ref="asyncEELFAudit" />
153 </logger>
154 <logger name="com.att.eelf.metrics" level="info" additivity="false">
155 <appender-ref ref="asyncEELFMetrics" />
156 </logger>
157
158 <!-- Spring related loggers -->
159 <logger name="org.springframework" level="WARN" />
160 <logger name="org.springframework.beans" level="WARN" />
161 <logger name="org.springframework.web" level="WARN" />
162 <logger name="com.blog.spring.jms" level="WARN" />
163
164 <!-- SearchDB loggers -->
165 <logger name="org.openecomp.sa" level="INFO" />
166
167 <!-- Other Loggers that may help troubleshoot -->
168 <logger name="net.sf" level="WARN" />
169 <logger name="org.apache.commons.httpclient" level="WARN" />
170 <logger name="org.apache.commons" level="WARN" />
171 <logger name="org.apache.coyote" level="WARN" />
172 <logger name="org.apache.jasper" level="WARN" />
173
174 <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging.
175 May aid in troubleshooting) -->
176 <logger name="org.apache.camel" level="WARN" />
177 <logger name="org.apache.cxf" level="WARN" />
178 <logger name="org.apache.camel.processor.interceptor" level="WARN" />
179 <logger name="org.apache.cxf.jaxrs.interceptor" level="WARN" />
180 <logger name="org.apache.cxf.service" level="WARN" />
181 <logger name="org.restlet" level="WARN" />
182 <logger name="org.apache.camel.component.restlet" level="WARN" />
183
184 <!-- logback internals logging -->
185 <logger name="ch.qos.logback.classic" level="WARN" />
186 <logger name="ch.qos.logback.core" level="WARN" />
187
188 <root>
189 <appender-ref ref="asyncEELF" />
190 <!-- <appender-ref ref="asyncEELFDebug" /> -->
191 </root>
192
BorislavGc4bafe12017-10-03 15:40:55 +0300193</configuration>