blob: 8f493cff6967679b1983ee621d081a08821b58a5 [file] [log] [blame]
Pamela Dragosha974aa02017-02-14 19:31:53 -05001<!--
2 ============LICENSE_START=======================================================
3 Integrity Audit
4 ================================================================================
Jim Hahn00747e52019-08-27 14:13:25 -04005 Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
Pamela Dragosha974aa02017-02-14 19:31:53 -05006 ================================================================================
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
Jim Hahn00747e52019-08-27 14:13:25 -040010
Pamela Dragosha974aa02017-02-14 19:31:53 -050011 http://www.apache.org/licenses/LICENSE-2.0
Jim Hahn00747e52019-08-27 14:13:25 -040012
Pamela Dragosha974aa02017-02-14 19:31:53 -050013 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
liamfallon3073f502019-12-04 10:24:58 +000023<configuration
24 scan="true"
25 scanPeriod="3 seconds"
26 debug="true">
Pamela Dragosha974aa02017-02-14 19:31:53 -050027 <!--<jmxConfigurator /> -->
28 <!-- directory path for all other type logs -->
liamfallon3073f502019-12-04 10:24:58 +000029 <property
30 name="logDir"
31 value="testingLogs" />
Jim Hahn00747e52019-08-27 14:13:25 -040032
Pamela Dragosha974aa02017-02-14 19:31:53 -050033 <!-- directory path for debugging type logs -->
liamfallon3073f502019-12-04 10:24:58 +000034 <property
35 name="debugDir"
36 value="testingLogs" />
Jim Hahn00747e52019-08-27 14:13:25 -040037
38 <!-- specify the component name
Guo Ruijingf8a620d2017-07-28 08:21:14 +000039 <ONAP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" -->
liamfallon3073f502019-12-04 10:24:58 +000040 <property
41 name="componentName"
42 value="common-modules"></property>
43 <property
44 name="subComponentName"
45 value="integrity-audit"></property>
Jim Hahn00747e52019-08-27 14:13:25 -040046
Pamela Dragosha974aa02017-02-14 19:31:53 -050047 <!-- log file names -->
liamfallon3073f502019-12-04 10:24:58 +000048 <property
49 name="errorLogName"
50 value="error" />
51 <property
52 name="metricsLogName"
53 value="metrics" />
54 <property
55 name="auditLogName"
56 value="audit" />
57 <property
58 name="debugLogName"
59 value="debug" />
Jim Hahn00747e52019-08-27 14:13:25 -040060
liamfallon3073f502019-12-04 10:24:58 +000061 <property
62 name="defaultPatternTimestamp"
63 value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX, UTC}" />
64
65 <property
66 name="defaultPatternTarget"
67 value="%X{requestId}|%X{serviceInstanceId}|%t|%X{serverName}|%X{serviceName}|%X{instanceUuid}" />
68
69
70 <property
71 name="defaultPatternDetails"
72 value="%X{severity}|%X{serverIpAddress}|%X{server}|%X{clientIpAddress}" />
73
74 <property
75 name="defaultPattern"
76 value="${defaultPatternTimestamp}|${defaultPatternTarget}|%p|${defaultPatternDetails}|%c||%msg%n" />
77
78 <property
79 name="logDirectory"
80 value="${logDir}/${componentName}/${subComponentName}" />
81 <property
82 name="debugLogDirectory"
83 value="${debugDir}/${componentName}/${subComponentName}" />
Pamela Dragosha974aa02017-02-14 19:31:53 -050084 <!--
85 <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" />
86 <property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" />
87 -->
Jim Hahn00747e52019-08-27 14:13:25 -040088 <!-- example from old log4j.properties: ${catalina.base}/logs/pdp-rest.log -->
Pamela Dragosha974aa02017-02-14 19:31:53 -050089 <!-- Example evaluator filter applied against console appender -->
liamfallon3073f502019-12-04 10:24:58 +000090 <appender
91 name="STDOUT"
92 class="ch.qos.logback.core.ConsoleAppender">
93 <encoder>
94 <pattern>${defaultPattern}</pattern>
95 </encoder>
96 </appender>
Pamela Dragosha974aa02017-02-14 19:31:53 -050097
98 <!-- ============================================================================ -->
99 <!-- EELF Appenders -->
100 <!-- ============================================================================ -->
101
Jim Hahn00747e52019-08-27 14:13:25 -0400102 <!-- The EELFAppender is used to record events to the general application
Pamela Dragosha974aa02017-02-14 19:31:53 -0500103 log -->
Pamela Dragosha974aa02017-02-14 19:31:53 -0500104
Jim Hahn00747e52019-08-27 14:13:25 -0400105
106
107
108 <!-- EELF Audit Appender. This appender is used to record audit engine
109 related logging events. The audit logger and appender are specializations
110 of the EELF application root logger and appender. This can be used to segregate
111 Policy engine events from other components, or it can be eliminated to record
Pamela Dragosha974aa02017-02-14 19:31:53 -0500112 these events as part of the application root log. -->
Jim Hahn00747e52019-08-27 14:13:25 -0400113
liamfallon3073f502019-12-04 10:24:58 +0000114 <appender
115 name="EELFAudit"
116 class="ch.qos.logback.core.rolling.RollingFileAppender">
117 <file>${logDirectory}/${auditLogName}.log</file>
118 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
119 <fileNamePattern>${logDirectory}/${auditLogName}.%i.log.zip
120 </fileNamePattern>
121 <minIndex>1</minIndex>
122 <maxIndex>9</maxIndex>
123 </rollingPolicy>
124 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
125 <maxFileSize>5MB</maxFileSize>
126 </triggeringPolicy>
127 <encoder>
128 <pattern>${defaultPattern}</pattern>
129 </encoder>
130 </appender>
131 <appender
132 name="asyncEELFAudit"
133 class="ch.qos.logback.classic.AsyncAppender">
134 <queueSize>256</queueSize>
135 <appender-ref ref="EELFAudit" />
136 </appender>
Pamela Dragosha974aa02017-02-14 19:31:53 -0500137
liamfallon3073f502019-12-04 10:24:58 +0000138 <appender
139 name="EELFMetrics"
140 class="ch.qos.logback.core.rolling.RollingFileAppender">
141 <file>${logDirectory}/${metricsLogName}.log</file>
142 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
143 <fileNamePattern>${logDirectory}/${metricsLogName}.%i.log.zip
144 </fileNamePattern>
145 <minIndex>1</minIndex>
146 <maxIndex>9</maxIndex>
147 </rollingPolicy>
148 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
149 <maxFileSize>5MB</maxFileSize>
150 </triggeringPolicy>
151 <encoder>
152 <pattern>${defaultPattern}</pattern>
153 </encoder>
154 </appender>
Jim Hahn00747e52019-08-27 14:13:25 -0400155
156
liamfallon3073f502019-12-04 10:24:58 +0000157 <appender
158 name="asyncEELFMetrics"
159 class="ch.qos.logback.classic.AsyncAppender">
160 <queueSize>256</queueSize>
161 <appender-ref ref="EELFMetrics" />
162 </appender>
Jim Hahn00747e52019-08-27 14:13:25 -0400163
liamfallon3073f502019-12-04 10:24:58 +0000164 <appender
165 name="EELFError"
166 class="ch.qos.logback.core.rolling.RollingFileAppender">
167 <file>${logDirectory}/${errorLogName}.log</file>
168 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
169 <fileNamePattern>${logDirectory}/${errorLogName}.%i.log.zip
170 </fileNamePattern>
171 <minIndex>1</minIndex>
172 <maxIndex>9</maxIndex>
173 </rollingPolicy>
174 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
175 <level>ERROR</level>
176 </filter>
177 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
178 <maxFileSize>5MB</maxFileSize>
179 </triggeringPolicy>
180 <encoder>
181 <pattern>${defaultPattern}</pattern>
182 </encoder>
183 </appender>
Jim Hahn00747e52019-08-27 14:13:25 -0400184
liamfallon3073f502019-12-04 10:24:58 +0000185 <appender
186 name="asyncEELFError"
187 class="ch.qos.logback.classic.AsyncAppender">
188 <queueSize>256</queueSize>
189 <appender-ref ref="EELFError" />
190 </appender>
Jim Hahn00747e52019-08-27 14:13:25 -0400191
liamfallon3073f502019-12-04 10:24:58 +0000192 <appender
193 name="EELFDebug"
194 class="ch.qos.logback.core.rolling.RollingFileAppender">
195 <file>${debugLogDirectory}/${debugLogName}.log</file>
196 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
197 <fileNamePattern>${debugLogDirectory}/${debugLogName}.%i.log.zip
198 </fileNamePattern>
199 <minIndex>1</minIndex>
200 <maxIndex>9</maxIndex>
201 </rollingPolicy>
202 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
203 <level>DEBUG</level>
204 </filter>
205 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
206 <maxFileSize>5MB</maxFileSize>
207 </triggeringPolicy>
208 <encoder>
209 <pattern>${defaultPattern}</pattern>
210 </encoder>
211 </appender>
Jim Hahn00747e52019-08-27 14:13:25 -0400212
liamfallon3073f502019-12-04 10:24:58 +0000213 <appender
214 name="asyncEELFDebug"
215 class="ch.qos.logback.classic.AsyncAppender">
216 <queueSize>256</queueSize>
217 <appender-ref ref="EELFDebug" />
218 <includeCallerData>true</includeCallerData>
219 </appender>
Jim Hahn00747e52019-08-27 14:13:25 -0400220
221
Pamela Dragosha974aa02017-02-14 19:31:53 -0500222 <!-- ============================================================================ -->
223 <!-- EELF loggers -->
224 <!-- ============================================================================ -->
Jim Hahn00747e52019-08-27 14:13:25 -0400225
liamfallon3073f502019-12-04 10:24:58 +0000226 <logger
227 name="com.att.eelf.audit"
228 level="info"
229 additivity="false">
230 <appender-ref ref="asyncEELFAudit" />
231 </logger>
Jim Hahn00747e52019-08-27 14:13:25 -0400232
liamfallon3073f502019-12-04 10:24:58 +0000233 <logger
234 name="com.att.eelf.metrics"
235 level="info"
236 additivity="false">
Pamela Dragosha974aa02017-02-14 19:31:53 -0500237 <appender-ref ref="asyncEELFMetrics" />
liamfallon3073f502019-12-04 10:24:58 +0000238 </logger>
Jim Hahn00747e52019-08-27 14:13:25 -0400239
liamfallon3073f502019-12-04 10:24:58 +0000240 <logger
241 name="com.att.eelf.error"
242 level="error"
243 additivity="false">
244 <appender-ref ref="asyncEELFError" />
245 </logger>
Jim Hahn00747e52019-08-27 14:13:25 -0400246
Pamela Dragosha974aa02017-02-14 19:31:53 -0500247 <!-- <logger name="com.att.eelf.debug" level="info" additivity="false"> -->
liamfallon3073f502019-12-04 10:24:58 +0000248 <logger
249 name="com.att.eelf.debug"
250 level="debug"
251 additivity="false">
Pamela Dragosha974aa02017-02-14 19:31:53 -0500252 <appender-ref ref="asyncEELFDebug" />
liamfallon3073f502019-12-04 10:24:58 +0000253 </logger>
Jim Hahn00747e52019-08-27 14:13:25 -0400254
255
Pamela Dragosha974aa02017-02-14 19:31:53 -0500256 <!-- <root level="INFO"> -->
liamfallon3073f502019-12-04 10:24:58 +0000257 <root level="DEBUG">
Pamela Dragosha974aa02017-02-14 19:31:53 -0500258 <appender-ref ref="asyncEELFDebug" />
259 <appender-ref ref="asyncEELFError" />
liamfallon3073f502019-12-04 10:24:58 +0000260 </root>
Pamela Dragosha974aa02017-02-14 19:31:53 -0500261
262</configuration>