2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 Copyright (C) 2017 Amdocs
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 <configuration scan="true" scanPeriod="3 seconds" debug="true">
24 <!--<jmxConfigurator /> -->
25 <property name="logDirectory" value="logs" />
26 <property name="debugLogDirectory" value="debug-logs" />
27 <!-- Example evaluator filter applied against console appender -->
28 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
30 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
31 %-36.36logger - %msg%n</pattern>
35 <!-- ============================================================================ -->
36 <!-- CDP Appenders -->
37 <!-- ============================================================================ -->
39 <!-- The CDPAppender is used to record events to the general CDP application
40 log. This is the log file used by default as the application root log, if
41 no other log is defined or the application creates specialized loggers of
42 the form com.att.cdp.x.y.z where the name occupied by the "x" is NOT security,
43 perf, server, coordinator, gui, or policy. These are defined as specialization
44 loggers for various business purposes. -->
46 class="ch.qos.logback.core.rolling.RollingFileAppender">
47 <file>${logDirectory}/cdp.log</file>
49 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
50 <fileNamePattern>${logDirectory}/cdp.%i.log.zip
52 <minIndex>1</minIndex>
53 <maxIndex>9</maxIndex>
56 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
57 <maxFileSize>5MB</maxFileSize>
60 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
62 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
63 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
64 %X{Path}] - %msg%n</pattern>
67 <appender name="asyncCDP" class="ch.qos.logback.classic.AsyncAppender">
68 <queueSize>256</queueSize>
69 <appender-ref ref="CDP" />
72 <!-- CDP Security Appender. This appender is used to record security events
73 to the security log file. Security events are separate from other loggers
74 in CDP so that security log records can be captured and managed in a secure
75 way separate from the other logs. This appender is set to never discard any
77 <appender name="CDPSecurity"
78 class="ch.qos.logback.core.rolling.RollingFileAppender">
79 <file>${logDirectory}/cdp-security.log</file>
81 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
82 <fileNamePattern>${logDirectory}/cdp-security.%i.log.zip
84 <minIndex>1</minIndex>
85 <maxIndex>9</maxIndex>
88 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
89 <maxFileSize>5MB</maxFileSize>
92 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
94 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
95 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
96 %X{Path}] - %msg%n</pattern>
99 <appender name="asyncCDPSecurity" class="ch.qos.logback.classic.AsyncAppender">
100 <queueSize>256</queueSize>
101 <discardingThreshold>0</discardingThreshold>
102 <appender-ref ref="CDPSecurity" />
105 <!-- CDP Performance Appender. This appender is used to record performance
107 <appender name="CDPPerformance"
108 class="ch.qos.logback.core.rolling.RollingFileAppender">
109 <file>${logDirectory}/cdp-performance.log</file>
111 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
112 <fileNamePattern>${logDirectory}/cdp-performance.%i.log.zip
114 <minIndex>1</minIndex>
115 <maxIndex>9</maxIndex>
118 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
119 <maxFileSize>5MB</maxFileSize>
122 <outputPatternAsHeader>true</outputPatternAsHeader>
123 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
124 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
125 %X{Path}] - %msg%n</pattern>
128 <appender name="asyncCDPPerformance" class="ch.qos.logback.classic.AsyncAppender">
129 <queueSize>256</queueSize>
130 <appender-ref ref="CDPPerformance" />
133 <!-- CDP Server Appender. This appender is used to record Server related
134 logging events. The Server logger and appender are specializations of the
135 CDP application root logger and appender. This can be used to segregate Server
136 events from other components, or it can be eliminated to record these events
137 as part of the application root log. -->
138 <appender name="CDPServer"
139 class="ch.qos.logback.core.rolling.RollingFileAppender">
140 <file>${logDirectory}/cdp-server.log</file>
142 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
143 <fileNamePattern>${logDirectory}/cdp-server.%i.log.zip
145 <minIndex>1</minIndex>
146 <maxIndex>9</maxIndex>
149 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
150 <maxFileSize>5MB</maxFileSize>
153 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
154 %msg%n"</pattern> -->
155 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
156 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
157 %X{Path}] - %msg%n</pattern>
160 <appender name="asyncCDPServer" class="ch.qos.logback.classic.AsyncAppender">
161 <queueSize>256</queueSize>
162 <appender-ref ref="CDPServer" />
165 <!-- CDP Coordinator Appender. This appender is used to record Coordinator
166 related logging events. The Coordinator logger and appender are specializations
167 of the CDP application root logger and appender. This can be used to segregate
168 Coordinator events from other components, or it can be eliminated to record
169 these events as part of the application root log. -->
170 <appender name="CDPCoordinator"
171 class="ch.qos.logback.core.rolling.RollingFileAppender">
172 <file>${logDirectory}/cdp-coordinator.log</file>
174 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
175 <fileNamePattern>${logDirectory}/cdp-coordinator.%i.log.zip
177 <minIndex>1</minIndex>
178 <maxIndex>9</maxIndex>
181 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
182 <maxFileSize>5MB</maxFileSize>
185 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
186 %msg%n"</pattern> -->
187 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
188 %-36.36logger - %msg%n</pattern>
191 <appender name="asyncCDPCoordinator" class="ch.qos.logback.classic.AsyncAppender">
192 <queueSize>256</queueSize>
193 <appender-ref ref="CDPCoordinator" />
196 <!-- CDP Policy Appender. This appender is used to record Policy engine
197 related logging events. The Policy logger and appender are specializations
198 of the CDP application root logger and appender. This can be used to segregate
199 Policy engine events from other components, or it can be eliminated to record
200 these events as part of the application root log. -->
201 <appender name="CDPPolicy"
202 class="ch.qos.logback.core.rolling.RollingFileAppender">
203 <file>${logDirectory}/cdp-policy.log</file>
205 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
206 <fileNamePattern>${logDirectory}/cdp-policy.%i.log.zip
208 <minIndex>1</minIndex>
209 <maxIndex>9</maxIndex>
212 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
213 <maxFileSize>5MB</maxFileSize>
216 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
217 %msg%n"</pattern> -->
218 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
219 %-36.36logger - %msg%n</pattern>
222 <appender name="asyncCDPPolicy" class="ch.qos.logback.classic.AsyncAppender">
223 <queueSize>256</queueSize>
224 <appender-ref ref="CDPPolicy" />
226 <appender name="CommandExecutor"
227 class="ch.qos.logback.core.rolling.RollingFileAppender">
228 <file>${debugLogDirectory}/appc-debug.log</file>
230 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
231 <fileNamePattern>${logDirectory}/command-executor.%i.log.zip
233 <minIndex>1</minIndex>
234 <maxIndex>9</maxIndex>
237 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
238 <maxFileSize>5MB</maxFileSize>
242 %d{yyyy-MM-dd'T'HH:mm:ss.SSSZ}|%X{RequestID}|%X{ServiceInstanceID}|%thread|%X{ServerName}|%X{ServiceName}|%X{UUID}|%-5.5p|%X{Severity}|%X{ServerIPAddress}|%X{Server}|%X{IPAddress}|[%c{3}]|%X{Timer}| - %msg%n
245 %d{MM/dd-HH:mm:ss.SSS}|%X{RequestId}|%X{ServiceInstanceId}|%t|%X{ServiceName} - %X{bundle.id} - %X{bundle.name} - %X{bundle.version}|%X{InstanceUUID}|%-5.5p|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{RemoteHost}|%X{Timer}|[%c{3}]|%m%n
250 <logger name="org.openecomp.appc" level="DEBUG" additivity="false">
251 <appender-ref ref="CommandExecutor" />
254 <!-- ============================================================================ -->
256 <!-- ============================================================================ -->
257 <logger name="com.att.cdp" level="info" additivity="false">
258 <appender-ref ref="asyncCDP" />
260 <logger name="com.att.cdp.security" level="info" additivity="false">
261 <appender-ref ref="asyncCDPSecurity" />
263 <logger name="com.att.cdp.perf" level="info" additivity="false">
264 <appender-ref ref="asyncCDPPerformance" />
266 <logger name="com.att.cdp.server" level="debug" additivity="false">
267 <appender-ref ref="asyncCDPServer" />
269 <logger name="com.att.cdp.coordinator" level="info" additivity="false">
270 <appender-ref ref="asyncCDPCoordinator" />
272 <logger name="com.att.cdp.policy" level="info" additivity="false">
273 <appender-ref ref="asyncCDPPolicy" />
276 <!-- The OpenStack connector logger -->
277 <logger name="os" level="debug" additivity="false">
278 <appender-ref ref="asyncCDPServer" />
282 <appender-ref ref="STDOUT" />