blob: 14ed4142fe39485655f081552d8437e9702759dc [file] [log] [blame]
BorislavGc4bafe12017-10-03 15:40:55 +03001<configuration debug="false" scan="true" scanPeriod="3 seconds">
2 <!--<jmxConfigurator /> -->
3 <!-- directory path for all other type logs -->
4 <property name="logDir" value="/var/log/onap" />
5 <property name="componentName" value="aai"></property>
6 <property name="subcomponentName" value="aai-sdb" />
7 <property name="logDirectory" value="${logDir}/${componentName}/${subcomponentName}" />
8 <!-- default eelf log file names -->
9 <property name="errorLogName" value="error" />
10 <property name="metricsLogName" value="metrics" />
11 <property name="auditLogName" value="audit" />
12 <property name="debugLogName" value="debug" />
13 <property name="queueSize" value="256" />
14 <property name="maxFileSize" value="50MB" />
15 <property name="maxHistory" value="30" />
16 <property name="totalSizeCap" value="10GB" />
17 <property name="pattern" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}\t[%thread]\t%-5level\t%logger\t%replace(%replace(%replace(%mdc){'\t','\\\\t'}){', ','\t'}){'\n', '\\\\n'}\t%replace(%replace(%msg){'\n', '\\\\n'}){'\t','\\\\t'}%n" />
18 <!-- Example evaluator filter applied against console appender -->
19 <appender class="ch.qos.logback.core.ConsoleAppender" name="STDOUT">
20 <encoder>
21 <pattern>${pattern}</pattern>
22 </encoder>
23 </appender>
24 <!-- ============================================================================ -->
25 <!-- EELF Appenders -->
26 <!-- ============================================================================ -->
27 <!-- The EELFAppender is used to record events to the general application
28 log -->
29 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="EELF">
30 <file>${logDirectory}/${errorLogName}.log</file>
31 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
32 <fileNamePattern>${logDirectory}/${errorLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
33 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
34 <maxFileSize>${maxFileSize}</maxFileSize>
35 </timeBasedFileNamingAndTriggeringPolicy>
36 <maxHistory>${maxHistory}</maxHistory>
37 <totalSizeCap>${totalSizeCap}</totalSizeCap>
38 </rollingPolicy>
39 <encoder>
40 <pattern>${pattern}</pattern>
41 </encoder>
42 </appender>
43 <appender class="ch.qos.logback.classic.AsyncAppender" name="asyncEELF">
44 <!-- deny all events with a level below INFO, that is TRACE and DEBUG -->
45 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
46 <level>INFO</level>
47 </filter>
48 <queueSize>${queueSize}</queueSize>
49 <appender-ref ref="EELF" />
50 </appender>
51 <!-- EELF Audit Appender. This appender is used to record audit engine
52 related logging events. The audit logger and appender are specializations
53 of the EELF application root logger and appender. This can be used to segregate
54 Policy engine events from other components, or it can be eliminated to record
55 these events as part of the application root log. -->
56 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="EELFAudit">
57 <file>${logDirectory}/${auditLogName}.log</file>
58 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
59 <fileNamePattern>${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
60 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
61 <maxFileSize>${maxFileSize}</maxFileSize>
62 </timeBasedFileNamingAndTriggeringPolicy>
63 <maxHistory>${maxHistory}</maxHistory>
64 <totalSizeCap>${totalSizeCap}</totalSizeCap>
65 </rollingPolicy>
66 <encoder>
67 <pattern>${pattern}</pattern>
68 </encoder>
69 </appender>
70 <appender class="ch.qos.logback.classic.AsyncAppender" name="asyncEELFAudit">
71 <queueSize>${queueSize}</queueSize>
72 <appender-ref ref="EELFAudit" />
73 </appender>
74 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="EELFMetrics">
75 <file>${logDirectory}/${metricsLogName}.log</file>
76 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
77 <fileNamePattern>${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
78 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
79 <maxFileSize>${maxFileSize}</maxFileSize>
80 </timeBasedFileNamingAndTriggeringPolicy>
81 <maxHistory>${maxHistory}</maxHistory>
82 <totalSizeCap>${totalSizeCap}</totalSizeCap>
83 </rollingPolicy>
84 <encoder>
85 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
86 %msg%n"</pattern> -->
87 <pattern>${pattern}</pattern>
88 </encoder>
89 </appender>
90 <appender class="ch.qos.logback.classic.AsyncAppender" name="asyncEELFMetrics">
91 <queueSize>${queueSize}</queueSize>
92 <appender-ref ref="EELFMetrics" />
93 </appender>
94 <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="EELFDebug">
95 <file>${logDirectory}/${debugLogName}.log</file>
96 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
97 <fileNamePattern>${logDirectory}/${debugLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
98 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
99 <maxFileSize>${maxFileSize}</maxFileSize>
100 </timeBasedFileNamingAndTriggeringPolicy>
101 <maxHistory>${maxHistory}</maxHistory>
102 <totalSizeCap>${totalSizeCap}</totalSizeCap>
103 </rollingPolicy>
104 <encoder>
105 <pattern>${pattern}</pattern>
106 </encoder>
107 </appender>
108 <appender class="ch.qos.logback.classic.AsyncAppender" name="asyncEELFDebug">
109 <queueSize>${queueSize}</queueSize>
110 <appender-ref ref="EELFDebug" />
111 <includeCallerData>false</includeCallerData>
112 </appender>
113 <!-- ============================================================================ -->
114 <!-- EELF loggers -->
115 <!-- ============================================================================ -->
116 <logger additivity="false" level="info" name="com.att.eelf">
117 <appender-ref ref="asyncEELF" />
118 <appender-ref ref="asyncEELFDebug" />
119 </logger>
120 <logger additivity="false" level="info" name="com.att.eelf.security">
121 <appender-ref ref="asyncEELFSecurity" />
122 </logger>
123 <logger additivity="false" level="info" name="com.att.eelf.perf">
124 <appender-ref ref="asyncEELFPerformance" />
125 </logger>
126 <logger additivity="false" level="info" name="com.att.eelf.server">
127 <appender-ref ref="asyncEELFServer" />
128 </logger>
129 <logger additivity="false" level="info" name="com.att.eelf.policy">
130 <appender-ref ref="asyncEELFPolicy" />
131 </logger>
132 <logger additivity="false" level="info" name="com.att.eelf.audit">
133 <appender-ref ref="asyncEELFAudit" />
134 </logger>
135 <logger additivity="false" level="info" name="com.att.eelf.metrics">
136 <appender-ref ref="asyncEELFMetrics" />
137 </logger>
138 <!-- Spring related loggers -->
139 <logger level="WARN" name="org.springframework" />
140 <logger level="WARN" name="org.springframework.beans" />
141 <logger level="WARN" name="org.springframework.web" />
142 <logger level="WARN" name="com.blog.spring.jms" />
143 <!-- AJSC Services (bootstrap services) -->
144 <logger level="WARN" name="ajsc" />
145 <logger level="WARN" name="ajsc.RouteMgmtService" />
146 <logger level="WARN" name="ajsc.ComputeService" />
147 <logger level="WARN" name="ajsc.VandelayService" />
148 <logger level="WARN" name="ajsc.FilePersistenceService" />
149 <logger level="WARN" name="ajsc.UserDefinedJarService" />
150 <logger level="WARN" name="ajsc.UserDefinedBeansDefService" />
151 <logger level="WARN" name="ajsc.LoggingConfigurationService" />
152 <logger level="WARN" name="ajsc.ErrorMessageLookupService" />
153 <!-- AJSC related loggers (DME2 Registration, csi logging, restlet, servlet
154 logging) -->
155 <logger level="WARN" name="ajsc.utils" />
156 <logger level="WARN" name="ajsc.utils.DME2Helper" />
157 <logger level="WARN" name="ajsc.filters" />
158 <logger level="WARN" name="ajsc.beans.interceptors" />
159 <logger level="WARN" name="ajsc.restlet" />
160 <logger level="WARN" name="ajsc.servlet" />
161 <logger level="INFO" name="com.att" />
162 <logger level="WARN" name="com.att.ajsc.csi.logging" />
163 <logger level="WARN" name="com.att.ajsc.filemonitor" />
164 <!-- SearchDB loggers -->
165 <logger level="INFO" name="org.openecomp.sa" />
166 <!-- Other Loggers that may help troubleshoot -->
167 <logger level="WARN" name="net.sf" />
168 <logger level="WARN" name="org.apache.commons.httpclient" />
169 <logger level="WARN" name="org.apache.commons" />
170 <logger level="WARN" name="org.apache.coyote" />
171 <logger level="WARN" name="org.apache.jasper" />
172 <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging.
173 May aid in troubleshooting) -->
174 <logger level="WARN" name="org.apache.camel" />
175 <logger level="WARN" name="org.apache.cxf" />
176 <logger level="WARN" name="org.apache.camel.processor.interceptor" />
177 <logger level="WARN" name="org.apache.cxf.jaxrs.interceptor" />
178 <logger level="WARN" name="org.apache.cxf.service" />
179 <logger level="WARN" name="org.restlet" />
180 <logger level="WARN" name="org.apache.camel.component.restlet" />
181 <!-- logback internals logging -->
182 <logger level="WARN" name="ch.qos.logback.classic" />
183 <logger level="WARN" name="ch.qos.logback.core" />
184 <root>
185 <appender-ref ref="asyncEELF" />
186 <!-- <appender-ref ref="asyncEELFDebug" /> -->
187 </root>
188</configuration>