a.sreekumar | 5351a0b | 2019-09-30 12:21:21 +0100 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
| 2 | <!--
|
| 3 | ============LICENSE_START=======================================================
|
| 4 | Copyright (C) 2016-2018 Ericsson. All rights reserved.
|
| 5 | Modifications Copyright (C) 2019 Nordix Foundation.
|
| 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 |
|
| 19 | SPDX-License-Identifier: Apache-2.0
|
| 20 | ============LICENSE_END=========================================================
|
| 21 | -->
|
| 22 |
|
| 23 | <configuration scan="true" scanPeriod="30 seconds" debug="false">
|
| 24 |
|
| 25 | <property name="logDir" value="${POLICY_LOGS}" />
|
| 26 |
|
| 27 | <property name="errorLog" value="error" />
|
| 28 | <property name="debugLog" value="debug" />
|
| 29 | <property name="networkLog" value="network" />
|
| 30 |
|
| 31 | <property name="debugPattern"
|
| 32 | value="[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n" />
|
| 33 | <property name="errorPattern" value="${debugPattern}" />
|
| 34 | <property name="networkPattern" value="[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%t]%m%n" />
|
| 35 |
|
| 36 | <appender name="ErrorOut" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 37 | <file>${logDir}/${errorLog}.log</file>
|
| 38 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
| 39 | <fileNamePattern>${logDir}/${errorLog}.%d{yyyy-MM-dd}.%i.log.zip
|
| 40 | </fileNamePattern>
|
| 41 | <maxFileSize>50MB</maxFileSize>
|
| 42 | <maxHistory>30</maxHistory>
|
| 43 | <totalSizeCap>10GB</totalSizeCap>
|
| 44 | </rollingPolicy>
|
| 45 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
| 46 | <level>WARN</level>
|
| 47 | </filter>
|
| 48 | <encoder>
|
| 49 | <pattern>${errorPattern}</pattern>
|
| 50 | </encoder>
|
| 51 | </appender>
|
| 52 |
|
| 53 | <appender name="AsyncErrorOut" class="ch.qos.logback.classic.AsyncAppender">
|
| 54 | <appender-ref ref="ErrorOut" />
|
| 55 | </appender>
|
| 56 |
|
| 57 | <appender name="DebugOut" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 58 | <file>${logDir}/${debugLog}.log</file>
|
| 59 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
| 60 | <fileNamePattern>${logDir}/${debugLog}.%d{yyyy-MM-dd}.%i.log.zip
|
| 61 | </fileNamePattern>
|
| 62 | <maxFileSize>50MB</maxFileSize>
|
| 63 | <maxHistory>30</maxHistory>
|
| 64 | <totalSizeCap>10GB</totalSizeCap>
|
| 65 | </rollingPolicy>
|
| 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.SizeAndTimeBasedRollingPolicy">
|
| 78 | <fileNamePattern>${logDir}/${networkLog}.%d{yyyy-MM-dd}.%i.log.zip
|
| 79 | </fileNamePattern>
|
| 80 | <maxFileSize>50MB</maxFileSize>
|
| 81 | <maxHistory>30</maxHistory>
|
| 82 | <totalSizeCap>10GB</totalSizeCap>
|
| 83 | </rollingPolicy>
|
| 84 | <encoder>
|
| 85 | <pattern>${networkPattern}</pattern>
|
| 86 | </encoder>
|
| 87 | </appender>
|
| 88 |
|
| 89 | <appender name="AsyncNetworkOut" class="ch.qos.logback.classic.AsyncAppender">
|
| 90 | <appender-ref ref="NetworkOut" />
|
| 91 | </appender>
|
| 92 |
|
| 93 | <logger name="network" level="INFO" additivity="false">
|
| 94 | <appender-ref ref="AsyncNetworkOut" />
|
| 95 | </logger>
|
| 96 |
|
| 97 | <logger name="org.eclipse.jetty.server.RequestLog" level="info" additivity="false">
|
| 98 | <appender-ref ref="AsyncNetworkOut" />
|
| 99 | </logger>
|
| 100 |
|
| 101 | <root level="INFO">
|
| 102 | <appender-ref ref="AsyncDebugOut" />
|
| 103 | <appender-ref ref="AsyncErrorOut" />
|
| 104 | </root>
|
| 105 |
|
| 106 | </configuration>
|