blob: 78de63a3f5f48162d0c21a6b7c5924364405177a [file] [log] [blame]
Pamela Dragosha974aa02017-02-14 19:31:53 -05001<!--
2 ============LICENSE_START=======================================================
3 Integrity Audit
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ============LICENSE_END=========================================================
19 -->
20
21<!-- Controls the output of logs for JUnit tests -->
22
23<configuration scan="true" scanPeriod="3 seconds" debug="true">
24 <!--<jmxConfigurator /> -->
25 <!-- directory path for all other type logs -->
26 <property name="logDir" value="testingLogs" />
27
28 <!-- directory path for debugging type logs -->
29 <property name="debugDir" value="testingLogs" />
30
31 <!-- specify the component name
32 <ECOMP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" -->
33 <property name="componentName" value="common-modules"></property>
34 <property name="subComponentName" value="integrity-audit"></property>
35
36 <!-- log file names -->
37 <property name="errorLogName" value="error" />
38 <property name="metricsLogName" value="metrics" />
39 <property name="auditLogName" value="audit" />
40 <property name="debugLogName" value="debug" />
41
42 <property name="defaultPattern" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}|%X{requestId}|%X{serviceInstanceId}|%t|%X{serverName}|%X{serviceName}|%X{instanceUuid}|%p|%X{severity}|%X{serverIpAddress}|%X{server}|%X{clientIpAddress}|%c||%msg%n" />
43 <!-- <property name="defaultPattern" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}|%X{RequestId}|%X{ServiceInstanceId}|%thread||%X{ServiceName}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{RemoteHost}||%X{Timer}|%msg%n" /> -->
44 <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" />
45 <property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" />
46 <!--
47 <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" />
48 <property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" />
49 -->
50 <!-- example from old log4j.properties: ${catalina.base}/logs/pdp-rest.log -->
51 <!-- Example evaluator filter applied against console appender -->
52 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
53 <encoder>
54 <pattern>${defaultPattern}</pattern>
55 </encoder>
56 </appender>
57
58 <!-- ============================================================================ -->
59 <!-- EELF Appenders -->
60 <!-- ============================================================================ -->
61
62 <!-- The EELFAppender is used to record events to the general application
63 log -->
64
65
66
67
68 <!-- EELF Audit Appender. This appender is used to record audit engine
69 related logging events. The audit logger and appender are specializations
70 of the EELF application root logger and appender. This can be used to segregate
71 Policy engine events from other components, or it can be eliminated to record
72 these events as part of the application root log. -->
73
74 <appender name="EELFAudit"
75 class="ch.qos.logback.core.rolling.RollingFileAppender">
76 <file>${logDirectory}/${auditLogName}.log</file>
77 <rollingPolicy
78 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
79 <fileNamePattern>${logDirectory}/${auditLogName}.%i.log.zip
80 </fileNamePattern>
81 <minIndex>1</minIndex>
82 <maxIndex>9</maxIndex>
83 </rollingPolicy>
84 <triggeringPolicy
85 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
86 <maxFileSize>5MB</maxFileSize>
87 </triggeringPolicy>
88 <encoder>
89 <pattern>${defaultPattern}</pattern>
90 </encoder>
91 </appender>
92 <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
93 <queueSize>256</queueSize>
94 <appender-ref ref="EELFAudit" />
95 </appender>
96
97<appender name="EELFMetrics"
98 class="ch.qos.logback.core.rolling.RollingFileAppender">
99 <file>${logDirectory}/${metricsLogName}.log</file>
100 <rollingPolicy
101 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
102 <fileNamePattern>${logDirectory}/${metricsLogName}.%i.log.zip
103 </fileNamePattern>
104 <minIndex>1</minIndex>
105 <maxIndex>9</maxIndex>
106 </rollingPolicy>
107 <triggeringPolicy
108 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
109 <maxFileSize>5MB</maxFileSize>
110 </triggeringPolicy>
111 <encoder>
112 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
113 %msg%n"</pattern> -->
114 <pattern>${defaultPattern}</pattern>
115 </encoder>
116 </appender>
117
118
119 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
120 <queueSize>256</queueSize>
121 <appender-ref ref="EELFMetrics"/>
122 </appender>
123
124 <appender name="EELFError"
125 class="ch.qos.logback.core.rolling.RollingFileAppender">
126 <file>${logDirectory}/${errorLogName}.log</file>
127 <rollingPolicy
128 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
129 <fileNamePattern>${logDirectory}/${errorLogName}.%i.log.zip
130 </fileNamePattern>
131 <minIndex>1</minIndex>
132 <maxIndex>9</maxIndex>
133 </rollingPolicy>
134 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
135 <level>ERROR</level>
136 </filter>
137 <triggeringPolicy
138 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
139 <maxFileSize>5MB</maxFileSize>
140 </triggeringPolicy>
141 <encoder>
142 <pattern>${defaultPattern}</pattern>
143 </encoder>
144 </appender>
145
146 <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
147 <queueSize>256</queueSize>
148 <appender-ref ref="EELFError"/>
149 </appender>
150
151 <appender name="EELFDebug"
152 class="ch.qos.logback.core.rolling.RollingFileAppender">
153 <file>${debugLogDirectory}/${debugLogName}.log</file>
154 <rollingPolicy
155 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
156 <fileNamePattern>${debugLogDirectory}/${debugLogName}.%i.log.zip
157 </fileNamePattern>
158 <minIndex>1</minIndex>
159 <maxIndex>9</maxIndex>
160 </rollingPolicy>
161 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
162 <!-- <level>INFO</level> -->
163 <level>DEBUG</level>
164 </filter>
165 <triggeringPolicy
166 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
167 <maxFileSize>5MB</maxFileSize>
168 </triggeringPolicy>
169 <encoder>
170 <pattern>${defaultPattern}</pattern>
171 </encoder>
172 </appender>
173
174 <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
175 <queueSize>256</queueSize>
176 <appender-ref ref="EELFDebug" />
177 <includeCallerData>true</includeCallerData>
178 </appender>
179
180
181 <!-- ============================================================================ -->
182 <!-- EELF loggers -->
183 <!-- ============================================================================ -->
184
185 <logger name="com.att.eelf.audit" level="info" additivity="false">
186 <appender-ref ref="asyncEELFAudit" />
187 </logger>
188
189 <logger name="com.att.eelf.metrics" level="info" additivity="false">
190 <appender-ref ref="asyncEELFMetrics" />
191 </logger>
192
193 <logger name="com.att.eelf.error" level="error" additivity="false">
194 <appender-ref ref="asyncEELFError" />
195 </logger>
196
197 <!-- <logger name="com.att.eelf.debug" level="info" additivity="false"> -->
198 <logger name="com.att.eelf.debug" level="debug" additivity="false">
199 <appender-ref ref="asyncEELFDebug" />
200 </logger>
201
202
203 <!-- <root level="INFO"> -->
204 <root level="DEBUG">
205 <appender-ref ref="asyncEELFDebug" />
206 <appender-ref ref="asyncEELFError" />
207 </root>
208
209</configuration>