Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 1 | <!-- |
| 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 Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 21 | <configuration scan="true" scanPeriod="30 seconds" debug="false"> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 22 | |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 23 | <property name="logDir" value="logs" /> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 24 | |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 25 | <property name="errorLog" value="error" /> |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 26 | <property name="debugLog" value="debug" /> |
| 27 | <property name="networkLog" value="network" /> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 28 | |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 29 | <property name="debugPattern" value="[%date|%level|%logger{0}|%thread] %msg%n" /> |
Jorge Hernandez | 9e69cc2 | 2017-06-26 08:05:30 -0500 | [diff] [blame] | 30 | <property name="errorPattern" value="${debugPattern}" /> |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 31 | <property name="networkPattern" value="[%d|%t]%m%n" /> |
| 32 | |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 33 | <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 Hernandez | 9e69cc2 | 2017-06-26 08:05:30 -0500 | [diff] [blame] | 38 | <maxIndex>5</maxIndex> |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 39 | </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"> |
jrh3 | 95dafe8 | 2017-08-23 09:40:28 -0400 | [diff] [blame] | 78 | <fileNamePattern>${logDir}/${networkLog}.%i.log.zip</fileNamePattern> |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 79 | <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 Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 93 | |
| 94 | <logger name="network" level="INFO" additivity="false"> |
| 95 | <appender-ref ref="AsyncNetworkOut" /> |
| 96 | </logger> |
jrh3 | 95dafe8 | 2017-08-23 09:40:28 -0400 | [diff] [blame] | 97 | |
| 98 | <logger name="org.eclipse.jetty.server.RequestLog" level="info" additivity="false"> |
| 99 | <appender-ref ref="AsyncNetworkOut" /> |
| 100 | </logger> |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 101 | |
| 102 | <root level="INFO"> |
| 103 | <appender-ref ref="AsyncDebugOut" /> |
| 104 | <appender-ref ref="AsyncErrorOut" /> |
| 105 | </root> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 106 | |
| 107 | </configuration> |