2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
7 Copyright (C) 2017 Amdocs
8 =============================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
21 ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 ============LICENSE_END=========================================================
25 <configuration scan="true" scanPeriod="3 seconds" debug="true">
26 <!--<jmxConfigurator /> -->
27 <property name="logDirectory" value="logs" />
28 <property name="debugLogDirectory" value="debug-logs" />
29 <!-- Example evaluator filter applied against console appender -->
30 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
32 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
33 %-36.36logger - %msg%n</pattern>
37 <!-- ============================================================================ -->
38 <!-- CDP Appenders -->
39 <!-- ============================================================================ -->
41 <!-- The CDPAppender is used to record events to the general CDP application
42 log. This is the log file used by default as the application root log, if
43 no other log is defined or the application creates specialized loggers of
44 the form com.att.cdp.x.y.z where the name occupied by the "x" is NOT security,
45 perf, server, coordinator, gui, or policy. These are defined as specialization
46 loggers for various business purposes. -->
48 class="ch.qos.logback.core.rolling.RollingFileAppender">
49 <file>${logDirectory}/cdp.log</file>
51 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
52 <fileNamePattern>${logDirectory}/cdp.%i.log.zip
54 <minIndex>1</minIndex>
55 <maxIndex>9</maxIndex>
58 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
59 <maxFileSize>5MB</maxFileSize>
62 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
64 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
65 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
66 %X{Path}] - %msg%n</pattern>
69 <appender name="asyncCDP" class="ch.qos.logback.classic.AsyncAppender">
70 <queueSize>256</queueSize>
71 <appender-ref ref="CDP" />
74 <!-- CDP Security Appender. This appender is used to record security events
75 to the security log file. Security events are separate from other loggers
76 in CDP so that security log records can be captured and managed in a secure
77 way separate from the other logs. This appender is set to never discard any
79 <appender name="CDPSecurity"
80 class="ch.qos.logback.core.rolling.RollingFileAppender">
81 <file>${logDirectory}/cdp-security.log</file>
83 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
84 <fileNamePattern>${logDirectory}/cdp-security.%i.log.zip
86 <minIndex>1</minIndex>
87 <maxIndex>9</maxIndex>
90 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
91 <maxFileSize>5MB</maxFileSize>
94 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
96 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
97 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
98 %X{Path}] - %msg%n</pattern>
101 <appender name="asyncCDPSecurity" class="ch.qos.logback.classic.AsyncAppender">
102 <queueSize>256</queueSize>
103 <discardingThreshold>0</discardingThreshold>
104 <appender-ref ref="CDPSecurity" />
107 <!-- CDP Performance Appender. This appender is used to record performance
109 <appender name="CDPPerformance"
110 class="ch.qos.logback.core.rolling.RollingFileAppender">
111 <file>${logDirectory}/cdp-performance.log</file>
113 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
114 <fileNamePattern>${logDirectory}/cdp-performance.%i.log.zip
116 <minIndex>1</minIndex>
117 <maxIndex>9</maxIndex>
120 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
121 <maxFileSize>5MB</maxFileSize>
124 <outputPatternAsHeader>true</outputPatternAsHeader>
125 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
126 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
127 %X{Path}] - %msg%n</pattern>
130 <appender name="asyncCDPPerformance" class="ch.qos.logback.classic.AsyncAppender">
131 <queueSize>256</queueSize>
132 <appender-ref ref="CDPPerformance" />
135 <!-- CDP Server Appender. This appender is used to record Server related
136 logging events. The Server logger and appender are specializations of the
137 CDP application root logger and appender. This can be used to segregate Server
138 events from other components, or it can be eliminated to record these events
139 as part of the application root log. -->
140 <appender name="CDPServer"
141 class="ch.qos.logback.core.rolling.RollingFileAppender">
142 <file>${logDirectory}/cdp-server.log</file>
144 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
145 <fileNamePattern>${logDirectory}/cdp-server.%i.log.zip
147 <minIndex>1</minIndex>
148 <maxIndex>9</maxIndex>
151 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
152 <maxFileSize>5MB</maxFileSize>
155 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
156 %msg%n"</pattern> -->
157 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
158 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
159 %X{Path}] - %msg%n</pattern>
162 <appender name="asyncCDPServer" class="ch.qos.logback.classic.AsyncAppender">
163 <queueSize>256</queueSize>
164 <appender-ref ref="CDPServer" />
167 <!-- CDP Coordinator Appender. This appender is used to record Coordinator
168 related logging events. The Coordinator logger and appender are specializations
169 of the CDP application root logger and appender. This can be used to segregate
170 Coordinator events from other components, or it can be eliminated to record
171 these events as part of the application root log. -->
172 <appender name="CDPCoordinator"
173 class="ch.qos.logback.core.rolling.RollingFileAppender">
174 <file>${logDirectory}/cdp-coordinator.log</file>
176 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
177 <fileNamePattern>${logDirectory}/cdp-coordinator.%i.log.zip
179 <minIndex>1</minIndex>
180 <maxIndex>9</maxIndex>
183 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
184 <maxFileSize>5MB</maxFileSize>
187 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
188 %msg%n"</pattern> -->
189 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
190 %-36.36logger - %msg%n</pattern>
193 <appender name="asyncCDPCoordinator" class="ch.qos.logback.classic.AsyncAppender">
194 <queueSize>256</queueSize>
195 <appender-ref ref="CDPCoordinator" />
198 <!-- CDP Policy Appender. This appender is used to record Policy engine
199 related logging events. The Policy logger and appender are specializations
200 of the CDP application root logger and appender. This can be used to segregate
201 Policy engine events from other components, or it can be eliminated to record
202 these events as part of the application root log. -->
203 <appender name="CDPPolicy"
204 class="ch.qos.logback.core.rolling.RollingFileAppender">
205 <file>${logDirectory}/cdp-policy.log</file>
207 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
208 <fileNamePattern>${logDirectory}/cdp-policy.%i.log.zip
210 <minIndex>1</minIndex>
211 <maxIndex>9</maxIndex>
214 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
215 <maxFileSize>5MB</maxFileSize>
218 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
219 %msg%n"</pattern> -->
220 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
221 %-36.36logger - %msg%n</pattern>
224 <appender name="asyncCDPPolicy" class="ch.qos.logback.classic.AsyncAppender">
225 <queueSize>256</queueSize>
226 <appender-ref ref="CDPPolicy" />
228 <appender name="CommandExecutor"
229 class="ch.qos.logback.core.rolling.RollingFileAppender">
230 <file>${debugLogDirectory}/appc-debug.log</file>
232 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
233 <fileNamePattern>${logDirectory}/command-executor.%i.log.zip
235 <minIndex>1</minIndex>
236 <maxIndex>9</maxIndex>
239 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
240 <maxFileSize>5MB</maxFileSize>
244 %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
247 %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
252 <logger name="org.openecomp.appc" level="DEBUG" additivity="false">
253 <appender-ref ref="CommandExecutor" />
256 <!-- ============================================================================ -->
258 <!-- ============================================================================ -->
259 <logger name="com.att.cdp" level="info" additivity="false">
260 <appender-ref ref="asyncCDP" />
262 <logger name="com.att.cdp.security" level="info" additivity="false">
263 <appender-ref ref="asyncCDPSecurity" />
265 <logger name="com.att.cdp.perf" level="info" additivity="false">
266 <appender-ref ref="asyncCDPPerformance" />
268 <logger name="com.att.cdp.server" level="debug" additivity="false">
269 <appender-ref ref="asyncCDPServer" />
271 <logger name="com.att.cdp.coordinator" level="info" additivity="false">
272 <appender-ref ref="asyncCDPCoordinator" />
274 <logger name="com.att.cdp.policy" level="info" additivity="false">
275 <appender-ref ref="asyncCDPPolicy" />
278 <!-- The OpenStack connector logger -->
279 <logger name="os" level="debug" additivity="false">
280 <appender-ref ref="asyncCDPServer" />
284 <appender-ref ref="STDOUT" />