Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 1 | <!--
|
| 2 | ============LICENSE_START=======================================================
|
| 3 | policy-management
|
| 4 | ================================================================================
|
Alexis de Talhouët | df4db0b | 2017-12-11 08:36:25 -0500 | [diff] [blame] | 5 | Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
|
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 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
|
Alexis de Talhouët | df4db0b | 2017-12-11 08:36:25 -0500 | [diff] [blame] | 10 |
|
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 11 | http://www.apache.org/licenses/LICENSE-2.0
|
Alexis de Talhouët | df4db0b | 2017-12-11 08:36:25 -0500 | [diff] [blame] | 12 |
|
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 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 | -->
|
Alexis de Talhouët | df4db0b | 2017-12-11 08:36:25 -0500 | [diff] [blame] | 20 |
|
| 21 | <configuration scan="true" scanPeriod="30 seconds" debug="false">
|
| 22 |
|
| 23 | <property name="logDir" value="/var/log/onap" />
|
| 24 |
|
| 25 | <property name="errorLog" value="error" />
|
| 26 | <property name="debugLog" value="debug" />
|
| 27 | <property name="networkLog" value="network" />
|
| 28 |
|
| 29 | <property name="debugPattern" value="[%date|%level|%logger{0}|%thread] %msg%n" />
|
| 30 | <property name="errorPattern" value="${debugPattern}" />
|
| 31 | <property name="networkPattern" value="[%d|%t]%m%n" />
|
| 32 |
|
| 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>
|
| 38 | <maxIndex>5</maxIndex>
|
| 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">
|
| 78 | <fileNamePattern>${logDir}/${networkLog}.%i.log.zip</fileNamePattern>
|
| 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>
|
| 93 |
|
| 94 | <logger name="network" level="INFO" additivity="false">
|
| 95 | <appender-ref ref="AsyncNetworkOut" />
|
| 96 | </logger>
|
| 97 |
|
| 98 | <logger name="org.eclipse.jetty.server.RequestLog" level="info" additivity="false">
|
| 99 | <appender-ref ref="AsyncNetworkOut" />
|
| 100 | </logger>
|
| 101 |
|
| 102 | <root level="INFO">
|
| 103 | <appender-ref ref="AsyncDebugOut" />
|
| 104 | <appender-ref ref="AsyncErrorOut" />
|
| 105 | </root>
|
| 106 |
|
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 107 | </configuration> |