Merge "Updated Cloud Guide with links to wiki"
[oom.git] / kubernetes / policy / charts / drools / resources / config / log / drools / logback.xml
1 <!--
2 # Copyright © 2017 Amdocs, Bell Canada,AT&T
3 #
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
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 -->
16
17 <configuration scan="true" scanPeriod="30 seconds" debug="false">
18
19         <property name="logDir" value="/var/log/onap" />
20
21         <property name="errorLog" value="error" />
22         <property name="debugLog" value="debug" />
23         <property name="networkLog" value="network" />
24
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" />
28
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>
35                 </rollingPolicy>
36                 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
37                         <level>WARN</level>
38                 </filter>
39                 <triggeringPolicy
40                         class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
41                         <maxFileSize>15MB</maxFileSize>
42                 </triggeringPolicy>
43                 <encoder>
44                         <pattern>${errorPattern}</pattern>
45                 </encoder>
46         </appender>
47
48         <appender name="AsyncErrorOut" class="ch.qos.logback.classic.AsyncAppender">
49                 <appender-ref ref="ErrorOut" />
50         </appender>
51
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>
58                 </rollingPolicy>
59                 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
60                         <maxFileSize>20MB</maxFileSize>
61                 </triggeringPolicy>
62                 <encoder>
63                         <pattern>${debugPattern}</pattern>
64                 </encoder>
65         </appender>
66
67         <appender name="AsyncDebugOut" class="ch.qos.logback.classic.AsyncAppender">
68                 <appender-ref ref="DebugOut" />
69         </appender>
70
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>
77                 </rollingPolicy>
78                 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
79                         <maxFileSize>15MB</maxFileSize>
80                 </triggeringPolicy>
81                 <encoder>
82                         <pattern>${networkPattern}</pattern>
83                 </encoder>
84         </appender>
85
86         <appender name="AsyncNetworkOut" class="ch.qos.logback.classic.AsyncAppender">
87                 <appender-ref ref="NetworkOut" />
88         </appender>
89
90         <logger name="network" level="INFO" additivity="false">
91                 <appender-ref ref="AsyncNetworkOut" />
92         </logger>
93
94         <logger name="org.eclipse.jetty.server.RequestLog" level="info" additivity="false">
95                 <appender-ref ref="AsyncNetworkOut" />
96         </logger>
97
98         <root level="INFO">
99                 <appender-ref ref="AsyncDebugOut" />
100                 <appender-ref ref="AsyncErrorOut" />
101         </root>
102
103 </configuration>