2 ============LICENSE_START=======================================================
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
11 http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 <configuration scan="true" scanPeriod="3 seconds" debug="true">
22 <!--<jmxConfigurator /> -->
23 <property name="logDirectory" value="logs" />
24 <property name="debugLogDirectory" value="debug-logs" />
25 <!-- Example evaluator filter applied against console appender -->
26 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
28 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
29 %-36.36logger - %msg%n</pattern>
33 <!-- ============================================================================ -->
34 <!-- CDP Appenders -->
35 <!-- ============================================================================ -->
37 <!-- The CDPAppender is used to record events to the general CDP application
38 log. This is the log file used by default as the application root log, if
39 no other log is defined or the application creates specialized loggers of
40 the form com.att.cdp.x.y.z where the name occupied by the "x" is NOT security,
41 perf, server, coordinator, gui, or policy. These are defined as specialization
42 loggers for various business purposes. -->
44 class="ch.qos.logback.core.rolling.RollingFileAppender">
45 <file>${logDirectory}/cdp.log</file>
47 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
48 <fileNamePattern>${logDirectory}/cdp.%i.log.zip
50 <minIndex>1</minIndex>
51 <maxIndex>9</maxIndex>
54 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
55 <maxFileSize>5MB</maxFileSize>
58 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
60 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
61 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
62 %X{Path}] - %msg%n</pattern>
65 <appender name="asyncCDP" class="ch.qos.logback.classic.AsyncAppender">
66 <queueSize>256</queueSize>
67 <appender-ref ref="CDP" />
70 <!-- CDP Security Appender. This appender is used to record security events
71 to the security log file. Security events are separate from other loggers
72 in CDP so that security log records can be captured and managed in a secure
73 way separate from the other logs. This appender is set to never discard any
75 <appender name="CDPSecurity"
76 class="ch.qos.logback.core.rolling.RollingFileAppender">
77 <file>${logDirectory}/cdp-security.log</file>
79 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
80 <fileNamePattern>${logDirectory}/cdp-security.%i.log.zip
82 <minIndex>1</minIndex>
83 <maxIndex>9</maxIndex>
86 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
87 <maxFileSize>5MB</maxFileSize>
90 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
92 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
93 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
94 %X{Path}] - %msg%n</pattern>
97 <appender name="asyncCDPSecurity" class="ch.qos.logback.classic.AsyncAppender">
98 <queueSize>256</queueSize>
99 <discardingThreshold>0</discardingThreshold>
100 <appender-ref ref="CDPSecurity" />
103 <!-- CDP Performance Appender. This appender is used to record performance
105 <appender name="CDPPerformance"
106 class="ch.qos.logback.core.rolling.RollingFileAppender">
107 <file>${logDirectory}/cdp-performance.log</file>
109 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
110 <fileNamePattern>${logDirectory}/cdp-performance.%i.log.zip
112 <minIndex>1</minIndex>
113 <maxIndex>9</maxIndex>
116 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
117 <maxFileSize>5MB</maxFileSize>
120 <outputPatternAsHeader>true</outputPatternAsHeader>
121 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
122 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
123 %X{Path}] - %msg%n</pattern>
126 <appender name="asyncCDPPerformance" class="ch.qos.logback.classic.AsyncAppender">
127 <queueSize>256</queueSize>
128 <appender-ref ref="CDPPerformance" />
131 <!-- CDP Server Appender. This appender is used to record Server related
132 logging events. The Server logger and appender are specializations of the
133 CDP application root logger and appender. This can be used to segregate Server
134 events from other components, or it can be eliminated to record these events
135 as part of the application root log. -->
136 <appender name="CDPServer"
137 class="ch.qos.logback.core.rolling.RollingFileAppender">
138 <file>${logDirectory}/cdp-server.log</file>
140 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
141 <fileNamePattern>${logDirectory}/cdp-server.%i.log.zip
143 <minIndex>1</minIndex>
144 <maxIndex>9</maxIndex>
147 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
148 <maxFileSize>5MB</maxFileSize>
151 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
152 %msg%n"</pattern> -->
153 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
154 %-36.36logger [%X{User} %X{RemoteHost} %X{RequestId} %X{Method}
155 %X{Path}] - %msg%n</pattern>
158 <appender name="asyncCDPServer" class="ch.qos.logback.classic.AsyncAppender">
159 <queueSize>256</queueSize>
160 <appender-ref ref="CDPServer" />
163 <!-- CDP Coordinator Appender. This appender is used to record Coordinator
164 related logging events. The Coordinator logger and appender are specializations
165 of the CDP application root logger and appender. This can be used to segregate
166 Coordinator events from other components, or it can be eliminated to record
167 these events as part of the application root log. -->
168 <appender name="CDPCoordinator"
169 class="ch.qos.logback.core.rolling.RollingFileAppender">
170 <file>${logDirectory}/cdp-coordinator.log</file>
172 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
173 <fileNamePattern>${logDirectory}/cdp-coordinator.%i.log.zip
175 <minIndex>1</minIndex>
176 <maxIndex>9</maxIndex>
179 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
180 <maxFileSize>5MB</maxFileSize>
183 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
184 %msg%n"</pattern> -->
185 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
186 %-36.36logger - %msg%n</pattern>
189 <appender name="asyncCDPCoordinator" class="ch.qos.logback.classic.AsyncAppender">
190 <queueSize>256</queueSize>
191 <appender-ref ref="CDPCoordinator" />
194 <!-- CDP Policy Appender. This appender is used to record Policy engine
195 related logging events. The Policy logger and appender are specializations
196 of the CDP application root logger and appender. This can be used to segregate
197 Policy engine events from other components, or it can be eliminated to record
198 these events as part of the application root log. -->
199 <appender name="CDPPolicy"
200 class="ch.qos.logback.core.rolling.RollingFileAppender">
201 <file>${logDirectory}/cdp-policy.log</file>
203 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
204 <fileNamePattern>${logDirectory}/cdp-policy.%i.log.zip
206 <minIndex>1</minIndex>
207 <maxIndex>9</maxIndex>
210 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
211 <maxFileSize>5MB</maxFileSize>
214 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
215 %msg%n"</pattern> -->
216 <pattern>%d{MM/dd-HH:mm:ss.SSS} [%-16thread] %.-5level
217 %-36.36logger - %msg%n</pattern>
220 <appender name="asyncCDPPolicy" class="ch.qos.logback.classic.AsyncAppender">
221 <queueSize>256</queueSize>
222 <appender-ref ref="CDPPolicy" />
224 <appender name="CommandExecutor"
225 class="ch.qos.logback.core.rolling.RollingFileAppender">
226 <file>${debugLogDirectory}/appc-debug.log</file>
228 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
229 <fileNamePattern>${logDirectory}/command-executor.%i.log.zip
231 <minIndex>1</minIndex>
232 <maxIndex>9</maxIndex>
235 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
236 <maxFileSize>5MB</maxFileSize>
240 %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
243 %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
248 <logger name="org.onap.appc" level="DEBUG" additivity="false">
249 <appender-ref ref="CommandExecutor" />
252 <!-- ============================================================================ -->
254 <!-- ============================================================================ -->
255 <logger name="com.att.cdp" level="info" additivity="false">
256 <appender-ref ref="asyncCDP" />
258 <logger name="com.att.cdp.security" level="info" additivity="false">
259 <appender-ref ref="asyncCDPSecurity" />
261 <logger name="com.att.cdp.perf" level="info" additivity="false">
262 <appender-ref ref="asyncCDPPerformance" />
264 <logger name="com.att.cdp.server" level="debug" additivity="false">
265 <appender-ref ref="asyncCDPServer" />
267 <logger name="com.att.cdp.coordinator" level="info" additivity="false">
268 <appender-ref ref="asyncCDPCoordinator" />
270 <logger name="com.att.cdp.policy" level="info" additivity="false">
271 <appender-ref ref="asyncCDPPolicy" />
274 <!-- The OpenStack connector logger -->
275 <logger name="os" level="debug" additivity="false">
276 <appender-ref ref="asyncCDPServer" />
280 <appender-ref ref="STDOUT" />