blob: 9fd83e8d0e30f541450e47e2987b7ca2e15b9640 [file] [log] [blame]
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05001<!--
2 ============LICENSE_START=======================================================
3 policy-persistence
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="drools-pdp"></property>
34 <property name="subComponentName" value="policy-management"></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
52 <!-- Example evaluator filter applied against console appender -->
53 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
54 <encoder>
55 <pattern>${defaultPattern}</pattern>
56 </encoder>
57 </appender>
58
59 <!-- ============================================================================ -->
60 <!-- EELF Appenders -->
61 <!-- ============================================================================ -->
62
63 <!-- The EELFAppender is used to record events to the general application
64 log -->
65
66
67
68
69 <!-- EELF Audit Appender. This appender is used to record audit engine
70 related logging events. The audit logger and appender are specializations
71 of the EELF application root logger and appender. This can be used to segregate
72 Policy engine events from other components, or it can be eliminated to record
73 these events as part of the application root log. -->
74
75 <appender name="EELFAudit"
76 class="ch.qos.logback.core.rolling.RollingFileAppender">
77 <file>${logDirectory}/${auditLogName}.log</file>
78 <rollingPolicy
79 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
80 <fileNamePattern>${logDirectory}/${auditLogName}.%i.log.zip
81 </fileNamePattern>
82 <minIndex>1</minIndex>
83 <maxIndex>9</maxIndex>
84 </rollingPolicy>
85 <triggeringPolicy
86 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
87 <maxFileSize>5MB</maxFileSize>
88 </triggeringPolicy>
89 <encoder>
90 <pattern>${defaultPattern}</pattern>
91 </encoder>
92 </appender>
93 <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
94 <queueSize>256</queueSize>
95 <appender-ref ref="EELFAudit" />
96 </appender>
97
98<appender name="EELFMetrics"
99 class="ch.qos.logback.core.rolling.RollingFileAppender">
100 <file>${logDirectory}/${metricsLogName}.log</file>
101 <rollingPolicy
102 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
103 <fileNamePattern>${logDirectory}/${metricsLogName}.%i.log.zip
104 </fileNamePattern>
105 <minIndex>1</minIndex>
106 <maxIndex>9</maxIndex>
107 </rollingPolicy>
108 <triggeringPolicy
109 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
110 <maxFileSize>5MB</maxFileSize>
111 </triggeringPolicy>
112 <encoder>
113 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
114 %msg%n"</pattern> -->
115 <pattern>${defaultPattern}</pattern>
116 </encoder>
117 </appender>
118
119
120 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
121 <queueSize>256</queueSize>
122 <appender-ref ref="EELFMetrics"/>
123 </appender>
124
125 <appender name="EELFError"
126 class="ch.qos.logback.core.rolling.RollingFileAppender">
127 <file>${logDirectory}/${errorLogName}.log</file>
128 <rollingPolicy
129 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
130 <fileNamePattern>${logDirectory}/${errorLogName}.%i.log.zip
131 </fileNamePattern>
132 <minIndex>1</minIndex>
133 <maxIndex>9</maxIndex>
134 </rollingPolicy>
135 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
136 <level>ERROR</level>
137 </filter>
138 <triggeringPolicy
139 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
140 <maxFileSize>5MB</maxFileSize>
141 </triggeringPolicy>
142 <encoder>
143 <pattern>${defaultPattern}</pattern>
144 </encoder>
145 </appender>
146
147 <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
148 <queueSize>256</queueSize>
149 <appender-ref ref="EELFError"/>
150 </appender>
151
152 <appender name="EELFDebug"
153 class="ch.qos.logback.core.rolling.RollingFileAppender">
154 <file>${debugLogDirectory}/${debugLogName}.log</file>
155 <rollingPolicy
156 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
157 <fileNamePattern>${debugLogDirectory}/${debugLogName}.%i.log.zip
158 </fileNamePattern>
159 <minIndex>1</minIndex>
160 <maxIndex>9</maxIndex>
161 </rollingPolicy>
162 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
163 <!-- <level>INFO</level> -->
164 <level>DEBUG</level>
165 </filter>
166 <triggeringPolicy
167 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
168 <maxFileSize>5MB</maxFileSize>
169 </triggeringPolicy>
170 <encoder>
171 <pattern>${defaultPattern}</pattern>
172 </encoder>
173 </appender>
174
175 <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
176 <queueSize>256</queueSize>
177 <appender-ref ref="EELFDebug" />
178 <includeCallerData>true</includeCallerData>
179 </appender>
180
181
182 <!-- ============================================================================ -->
183 <!-- EELF loggers -->
184 <!-- ============================================================================ -->
185
186 <logger name="com.att.eelf.audit" level="info" additivity="false">
187 <appender-ref ref="asyncEELFAudit" />
188 </logger>
189
190 <logger name="com.att.eelf.metrics" level="info" additivity="false">
191 <appender-ref ref="asyncEELFMetrics" />
192 </logger>
193
194 <logger name="com.att.eelf.error" level="error" additivity="false">
195 <appender-ref ref="asyncEELFError" />
196 </logger>
197
198 <!-- <logger name="com.att.eelf.debug" level="info" additivity="false"> -->
199 <logger name="com.att.eelf.debug" level="debug" additivity="false">
200 <appender-ref ref="asyncEELFDebug" />
201 </logger>
202
203 <!-- <root level="INFO"> -->
204 <root level="DEBUG">
205 <appender-ref ref="asyncEELFDebug" />
206 <appender-ref ref="asyncEELFError" />
207 </root>
208
209</configuration>