2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2017-2018 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 ============LICENSE_END=========================================================
24 <configuration scan="true" scanPeriod="3 seconds" debug="true">
25 <!--<jmxConfigurator /> -->
26 <property name="logDirectory" value="logs" />
27 <property name="debugLogDirectory" value="debug-logs" />
28 <!-- Example evaluator filter applied against console appender -->
29 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
31 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
32 %-36.36logger - %msg%n</pattern>
36 <!-- ============================================================================ -->
37 <!-- CDP Appenders -->
38 <!-- ============================================================================ -->
40 <!-- The CDPAppender is used to record events to the general CDP application
41 log. This is the log file used by default as the application root log, if
42 no other log is defined or the application creates specialized loggers of
43 the form com.att.cdp.x.y.z where the name occupied by the "x" is NOT security,
44 perf, server, coordinator, gui, or policy. These are defined as specialization
45 loggers for various business purposes. -->
47 class="ch.qos.logback.core.rolling.RollingFileAppender">
48 <file>${logDirectory}/cdp.log</file>
50 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
51 <fileNamePattern>${logDirectory}/cdp.%i.log.zip
53 <minIndex>1</minIndex>
54 <maxIndex>9</maxIndex>
57 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
58 <maxFileSize>5MB</maxFileSize>
61 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
63 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
64 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
65 %X{Path}] - %msg%n</pattern>
68 <appender name="asyncCDP" class="ch.qos.logback.classic.AsyncAppender">
69 <queueSize>256</queueSize>
70 <appender-ref ref="CDP" />
73 <!-- CDP Security Appender. This appender is used to record security events
74 to the security log file. Security events are separate from other loggers
75 in CDP so that security log records can be captured and managed in a secure
76 way separate from the other logs. This appender is set to never discard any
78 <appender name="CDPSecurity"
79 class="ch.qos.logback.core.rolling.RollingFileAppender">
80 <file>${logDirectory}/cdp-security.log</file>
82 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
83 <fileNamePattern>${logDirectory}/cdp-security.%i.log.zip
85 <minIndex>1</minIndex>
86 <maxIndex>9</maxIndex>
89 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
90 <maxFileSize>5MB</maxFileSize>
93 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
95 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
96 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
97 %X{Path}] - %msg%n</pattern>
100 <appender name="asyncCDPSecurity" class="ch.qos.logback.classic.AsyncAppender">
101 <queueSize>256</queueSize>
102 <discardingThreshold>0</discardingThreshold>
103 <appender-ref ref="CDPSecurity" />
106 <!-- CDP Performance Appender. This appender is used to record performance
108 <appender name="CDPPerformance"
109 class="ch.qos.logback.core.rolling.RollingFileAppender">
110 <file>${logDirectory}/cdp-performance.log</file>
112 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
113 <fileNamePattern>${logDirectory}/cdp-performance.%i.log.zip
115 <minIndex>1</minIndex>
116 <maxIndex>9</maxIndex>
119 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
120 <maxFileSize>5MB</maxFileSize>
123 <outputPatternAsHeader>true</outputPatternAsHeader>
124 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
125 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
126 %X{Path}] - %msg%n</pattern>
129 <appender name="asyncCDPPerformance" class="ch.qos.logback.classic.AsyncAppender">
130 <queueSize>256</queueSize>
131 <appender-ref ref="CDPPerformance" />
134 <!-- CDP Server Appender. This appender is used to record Server related
135 logging events. The Server logger and appender are specializations of the
136 CDP application root logger and appender. This can be used to segregate Server
137 events from other components, or it can be eliminated to record these events
138 as part of the application root log. -->
139 <appender name="CDPServer"
140 class="ch.qos.logback.core.rolling.RollingFileAppender">
141 <file>${logDirectory}/cdp-server.log</file>
143 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
144 <fileNamePattern>${logDirectory}/cdp-server.%i.log.zip
146 <minIndex>1</minIndex>
147 <maxIndex>9</maxIndex>
150 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
151 <maxFileSize>5MB</maxFileSize>
154 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
155 %msg%n"</pattern> -->
156 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
157 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
158 %X{Path}] - %msg%n</pattern>
161 <appender name="asyncCDPServer" class="ch.qos.logback.classic.AsyncAppender">
162 <queueSize>256</queueSize>
163 <appender-ref ref="CDPServer" />
166 <!-- CDP Coordinator Appender. This appender is used to record Coordinator
167 related logging events. The Coordinator logger and appender are specializations
168 of the CDP application root logger and appender. This can be used to segregate
169 Coordinator events from other components, or it can be eliminated to record
170 these events as part of the application root log. -->
171 <appender name="CDPCoordinator"
172 class="ch.qos.logback.core.rolling.RollingFileAppender">
173 <file>${logDirectory}/cdp-coordinator.log</file>
175 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
176 <fileNamePattern>${logDirectory}/cdp-coordinator.%i.log.zip
178 <minIndex>1</minIndex>
179 <maxIndex>9</maxIndex>
182 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
183 <maxFileSize>5MB</maxFileSize>
186 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
187 %msg%n"</pattern> -->
188 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
189 %-36.36logger - %msg%n</pattern>
192 <appender name="asyncCDPCoordinator" class="ch.qos.logback.classic.AsyncAppender">
193 <queueSize>256</queueSize>
194 <appender-ref ref="CDPCoordinator" />
197 <!-- CDP Policy Appender. This appender is used to record Policy engine
198 related logging events. The Policy logger and appender are specializations
199 of the CDP application root logger and appender. This can be used to segregate
200 Policy engine events from other components, or it can be eliminated to record
201 these events as part of the application root log. -->
202 <appender name="CDPPolicy"
203 class="ch.qos.logback.core.rolling.RollingFileAppender">
204 <file>${logDirectory}/cdp-policy.log</file>
206 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
207 <fileNamePattern>${logDirectory}/cdp-policy.%i.log.zip
209 <minIndex>1</minIndex>
210 <maxIndex>9</maxIndex>
213 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
214 <maxFileSize>5MB</maxFileSize>
217 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
218 %msg%n"</pattern> -->
219 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
220 %-36.36logger - %msg%n</pattern>
223 <appender name="asyncCDPPolicy" class="ch.qos.logback.classic.AsyncAppender">
224 <queueSize>256</queueSize>
225 <appender-ref ref="CDPPolicy" />
227 <appender name="CommandExecutor"
228 class="ch.qos.logback.core.rolling.RollingFileAppender">
229 <file>${debugLogDirectory}/appc-debug.log</file>
231 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
232 <fileNamePattern>${logDirectory}/command-executor.%i.log.zip
234 <minIndex>1</minIndex>
235 <maxIndex>9</maxIndex>
238 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
239 <maxFileSize>5MB</maxFileSize>
243 %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
246 %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
251 <logger name="org.onap.appc" level="DEBUG" additivity="false">
252 <appender-ref ref="CommandExecutor" />
255 <!-- ============================================================================ -->
257 <!-- ============================================================================ -->
258 <logger name="com.att.cdp" level="info" additivity="false">
259 <appender-ref ref="asyncCDP" />
261 <logger name="com.att.cdp.security" level="info" additivity="false">
262 <appender-ref ref="asyncCDPSecurity" />
264 <logger name="com.att.cdp.perf" level="info" additivity="false">
265 <appender-ref ref="asyncCDPPerformance" />
267 <logger name="com.att.cdp.server" level="debug" additivity="false">
268 <appender-ref ref="asyncCDPServer" />
270 <logger name="com.att.cdp.coordinator" level="info" additivity="false">
271 <appender-ref ref="asyncCDPCoordinator" />
273 <logger name="com.att.cdp.policy" level="info" additivity="false">
274 <appender-ref ref="asyncCDPPolicy" />
277 <!-- The OpenStack connector logger -->
278 <logger name="os" level="debug" additivity="false">
279 <appender-ref ref="asyncCDPServer" />
283 <appender-ref ref="STDOUT" />