[DMAAP-DR] Remove AAF/TLS phase 1
[dmaap/datarouter.git] / csit / scripts / dmaap-datarouter / docker-compose / sub-logback.xml
1 <!--
2   ============LICENSE_START==================================================
3   * org.onap.dmaap
4   * ===========================================================================
5   * Copyright © 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   * ECOMP is a trademark and service mark of AT&T Intellectual Property.
21   *
22 -->
23 <configuration scan="true" scanPeriod="3 seconds" debug="false">
24   <property name="logDir" value="/var/log/onap/subscriber" />
25   <property name="generalLogName" value="application" />
26   <property name="defaultPattern"  value="%d{MM/dd-HH:mm:ss.SSS}|%logger|%X{RequestId}|%X{InvocationId}|%X{ServiceInstanceId}|%thread|%X{ServiceName}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{RemoteHost}|%X{Timer}|%msg%n" />
27   <property name="logDirectory" value="${logDir}" />
28
29   <appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
30     <file>${logDirectory}/${generalLogName}.log</file>
31     <append>true</append>
32     <immediateFlush>true</immediateFlush>
33     <rollingPolicy
34       class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
35       <fileNamePattern>${logDirectory}/${generalLogName}.%i.log.zip
36       </fileNamePattern>
37       <minIndex>1</minIndex>
38       <maxIndex>9</maxIndex>
39     </rollingPolicy>
40     <triggeringPolicy
41       class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
42       <maxFileSize>50MB</maxFileSize>
43     </triggeringPolicy>
44     <encoder>
45       <pattern>${defaultPattern}</pattern>
46     </encoder>
47   </appender>
48
49   <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
50     <encoder>
51       <pattern>${defaultPattern}</pattern>
52     </encoder>
53   </appender>
54
55   <logger name="org.eclipse.jetty" level="info"/>
56
57   <root level="debug">
58     <appender-ref ref="file" />
59     <appender-ref ref="console" />
60   </root>
61 </configuration>