blob: 1801c43a37a2afaa304746de2143014d99e87db9 [file] [log] [blame]
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05001<!--
2 ============LICENSE_START=======================================================
3 policy-management
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
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
Jorge Hernandez8f61e182017-06-22 17:17:28 -050021<configuration scan="true" scanPeriod="30 seconds" debug="false">
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050022
Jorge Hernandez8f61e182017-06-22 17:17:28 -050023 <property name="logDir" value="logs" />
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050024
Jorge Hernandez8f61e182017-06-22 17:17:28 -050025 <property name="errorLog" value="error" />
Jorge Hernandez8f61e182017-06-22 17:17:28 -050026 <property name="debugLog" value="debug" />
27 <property name="networkLog" value="network" />
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050028
Jorge Hernandez8f61e182017-06-22 17:17:28 -050029 <property name="debugPattern" value="[%date|%level|%logger{0}|%thread] %msg%n" />
Jorge Hernandez9e69cc22017-06-26 08:05:30 -050030 <property name="errorPattern" value="${debugPattern}" />
Jorge Hernandez8f61e182017-06-22 17:17:28 -050031 <property name="networkPattern" value="[%d|%t]%m%n" />
32
Jorge Hernandez8f61e182017-06-22 17:17:28 -050033 <appender name="ErrorOut" class="ch.qos.logback.core.rolling.RollingFileAppender">
34 <file>${logDir}/${errorLog}.log</file>
35 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
36 <fileNamePattern>${logDir}/${errorLog}.%i.log.zip</fileNamePattern>
37 <minIndex>1</minIndex>
Jorge Hernandez9e69cc22017-06-26 08:05:30 -050038 <maxIndex>5</maxIndex>
Jorge Hernandez8f61e182017-06-22 17:17:28 -050039 </rollingPolicy>
40 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
41 <level>WARN</level>
42 </filter>
43 <triggeringPolicy
44 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
45 <maxFileSize>15MB</maxFileSize>
46 </triggeringPolicy>
47 <encoder>
48 <pattern>${errorPattern}</pattern>
49 </encoder>
50 </appender>
51
52 <appender name="AsyncErrorOut" class="ch.qos.logback.classic.AsyncAppender">
53 <appender-ref ref="ErrorOut" />
54 </appender>
55
56 <appender name="DebugOut" class="ch.qos.logback.core.rolling.RollingFileAppender">
57 <file>${logDir}/${debugLog}.log</file>
58 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
59 <fileNamePattern>${logDir}/${debugLog}.%i.log.zip</fileNamePattern>
60 <minIndex>1</minIndex>
61 <maxIndex>9</maxIndex>
62 </rollingPolicy>
63 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
64 <maxFileSize>20MB</maxFileSize>
65 </triggeringPolicy>
66 <encoder>
67 <pattern>${debugPattern}</pattern>
68 </encoder>
69 </appender>
70
71 <appender name="AsyncDebugOut" class="ch.qos.logback.classic.AsyncAppender">
72 <appender-ref ref="DebugOut" />
73 </appender>
74
75 <appender name="NetworkOut" class="ch.qos.logback.core.rolling.RollingFileAppender">
76 <file>${logDir}/${networkLog}.log</file>
77 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
jrh395dafe82017-08-23 09:40:28 -040078 <fileNamePattern>${logDir}/${networkLog}.%i.log.zip</fileNamePattern>
Jorge Hernandez8f61e182017-06-22 17:17:28 -050079 <minIndex>1</minIndex>
80 <maxIndex>9</maxIndex>
81 </rollingPolicy>
82 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
83 <maxFileSize>15MB</maxFileSize>
84 </triggeringPolicy>
85 <encoder>
86 <pattern>${networkPattern}</pattern>
87 </encoder>
88 </appender>
89
90 <appender name="AsyncNetworkOut" class="ch.qos.logback.classic.AsyncAppender">
91 <appender-ref ref="NetworkOut" />
92 </appender>
Jorge Hernandez8f61e182017-06-22 17:17:28 -050093
94 <logger name="network" level="INFO" additivity="false">
95 <appender-ref ref="AsyncNetworkOut" />
96 </logger>
jrh395dafe82017-08-23 09:40:28 -040097
98 <logger name="org.eclipse.jetty.server.RequestLog" level="info" additivity="false">
99 <appender-ref ref="AsyncNetworkOut" />
100 </logger>
Jorge Hernandez8f61e182017-06-22 17:17:28 -0500101
102 <root level="INFO">
103 <appender-ref ref="AsyncDebugOut" />
104 <appender-ref ref="AsyncErrorOut" />
105 </root>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500106
107</configuration>