2 # Copyright © 2017 Amdocs, Bell Canada,AT&T
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 <configuration scan="true" scanPeriod="30 seconds" debug="false">
19 <property name="logDir" value="/var/log/onap" />
21 <property name="errorLog" value="error" />
22 <property name="debugLog" value="debug" />
23 <property name="networkLog" value="network" />
25 <property name="debugPattern" value="[%date|%level|%logger{0}|%thread] %msg%n" />
26 <property name="errorPattern" value="${debugPattern}" />
27 <property name="networkPattern" value="[%d|%t]%m%n" />
29 <appender name="ErrorOut" class="ch.qos.logback.core.rolling.RollingFileAppender">
30 <file>${logDir}/${errorLog}.log</file>
31 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
32 <fileNamePattern>${logDir}/${errorLog}.%i.log.zip</fileNamePattern>
33 <minIndex>1</minIndex>
34 <maxIndex>5</maxIndex>
36 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
40 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
41 <maxFileSize>15MB</maxFileSize>
44 <pattern>${errorPattern}</pattern>
48 <appender name="AsyncErrorOut" class="ch.qos.logback.classic.AsyncAppender">
49 <appender-ref ref="ErrorOut" />
52 <appender name="DebugOut" class="ch.qos.logback.core.rolling.RollingFileAppender">
53 <file>${logDir}/${debugLog}.log</file>
54 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
55 <fileNamePattern>${logDir}/${debugLog}.%i.log.zip</fileNamePattern>
56 <minIndex>1</minIndex>
57 <maxIndex>9</maxIndex>
59 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
60 <maxFileSize>20MB</maxFileSize>
63 <pattern>${debugPattern}</pattern>
67 <appender name="AsyncDebugOut" class="ch.qos.logback.classic.AsyncAppender">
68 <appender-ref ref="DebugOut" />
71 <appender name="NetworkOut" class="ch.qos.logback.core.rolling.RollingFileAppender">
72 <file>${logDir}/${networkLog}.log</file>
73 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
74 <fileNamePattern>${logDir}/${networkLog}.%i.log.zip</fileNamePattern>
75 <minIndex>1</minIndex>
76 <maxIndex>9</maxIndex>
78 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
79 <maxFileSize>15MB</maxFileSize>
82 <pattern>${networkPattern}</pattern>
86 <appender name="AsyncNetworkOut" class="ch.qos.logback.classic.AsyncAppender">
87 <appender-ref ref="NetworkOut" />
90 <logger name="network" level="INFO" additivity="false">
91 <appender-ref ref="AsyncNetworkOut" />
94 <logger name="org.eclipse.jetty.server.RequestLog" level="info" additivity="false">
95 <appender-ref ref="AsyncNetworkOut" />
99 <appender-ref ref="AsyncDebugOut" />
100 <appender-ref ref="AsyncErrorOut" />