jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2020 Bell Canada. All rights reserved. |
| 4 | ================================================================================ |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | Unless required by applicable law or agreed to in writing, software |
| 10 | distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | See the License for the specific language governing permissions and |
| 13 | limitations under the License. |
| 14 | SPDX-License-Identifier: Apache-2.0 |
| 15 | ============LICENSE_END========================================================= |
| 16 | --> |
| 17 | |
| 18 | <configuration scan="true" scanPeriod="30 seconds" debug="false"> |
| 19 | |
| 20 | <appender name="ErrorOut" |
| 21 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 22 | <file>/var/log/onap/policy/distribution/error.log</file> |
| 23 | <rollingPolicy |
| 24 | class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 25 | <fileNamePattern>/var/log/onap/policy/distribution/error.%d{yyyy-MM-dd}.%i.log.zip |
| 26 | </fileNamePattern> |
| 27 | <maxFileSize>50MB</maxFileSize> |
| 28 | <maxHistory>30</maxHistory> |
| 29 | <totalSizeCap>10GB</totalSizeCap> |
| 30 | </rollingPolicy> |
| 31 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 32 | <level>WARN</level> |
| 33 | </filter> |
| 34 | <encoder> |
| 35 | <pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n</pattern> |
| 36 | </encoder> |
| 37 | </appender> |
| 38 | |
| 39 | <appender name="AsyncErrorOut" |
| 40 | class="ch.qos.logback.classic.AsyncAppender"> |
| 41 | <appender-ref ref="ErrorOut" /> |
| 42 | </appender> |
| 43 | |
| 44 | <appender name="DebugOut" |
| 45 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 46 | <file>/var/log/onap/policy/distribution/debug.log</file> |
| 47 | <rollingPolicy |
| 48 | class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 49 | <fileNamePattern>/var/log/onap/policy/distribution/debug.%d{yyyy-MM-dd}.%i.log.zip |
| 50 | </fileNamePattern> |
| 51 | <maxFileSize>50MB</maxFileSize> |
| 52 | <maxHistory>30</maxHistory> |
| 53 | <totalSizeCap>10GB</totalSizeCap> |
| 54 | </rollingPolicy> |
| 55 | <encoder> |
| 56 | <pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n</pattern> |
| 57 | </encoder> |
| 58 | </appender> |
| 59 | |
| 60 | <appender name="AsyncDebugOut" |
| 61 | class="ch.qos.logback.classic.AsyncAppender"> |
| 62 | <appender-ref ref="DebugOut" /> |
| 63 | </appender> |
| 64 | |
| 65 | <appender name="NetworkOut" |
| 66 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 67 | <file>/var/log/onap/policy/distribution/network.log</file> |
| 68 | <rollingPolicy |
| 69 | class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 70 | <fileNamePattern>/var/log/onap/policy/distribution/network.%d{yyyy-MM-dd}.%i.log.zip |
| 71 | </fileNamePattern> |
| 72 | <maxFileSize>50MB</maxFileSize> |
| 73 | <maxHistory>30</maxHistory> |
| 74 | <totalSizeCap>10GB</totalSizeCap> |
| 75 | </rollingPolicy> |
| 76 | <encoder> |
| 77 | <pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%t]%m%n</pattern> |
| 78 | </encoder> |
| 79 | </appender> |
| 80 | |
| 81 | <appender name="AsyncNetworkOut" |
| 82 | class="ch.qos.logback.classic.AsyncAppender"> |
| 83 | <appender-ref ref="NetworkOut" /> |
| 84 | </appender> |
| 85 | |
| 86 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
| 87 | <encoder> |
| 88 | <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern> |
| 89 | </encoder> |
| 90 | </appender> |
| 91 | |
| 92 | <appender name="AsyncStdOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 93 | <appender-ref ref="STDOUT" /> |
| 94 | </appender> |
| 95 | |
| 96 | <logger name="network" level="INFO" additivity="false"> |
| 97 | <appender-ref ref="AsyncNetworkOut" /> |
| 98 | <appender-ref ref="AsyncStdOut" /> |
| 99 | </logger> |
| 100 | |
| 101 | <logger name="org.eclipse.jetty.server.RequestLog" level="info" |
| 102 | additivity="false"> |
| 103 | <appender-ref ref="AsyncNetworkOut" /> |
| 104 | <appender-ref ref="AsyncStdOut" /> |
| 105 | </logger> |
| 106 | |
| 107 | <root level="INFO"> |
| 108 | <appender-ref ref="AsyncDebugOut" /> |
| 109 | <appender-ref ref="AsyncErrorOut" /> |
| 110 | <appender-ref ref="AsyncStdOut" /> |
| 111 | </root> |
| 112 | |
Bruno Sakoto | 9534b52 | 2020-07-24 12:40:42 -0400 | [diff] [blame] | 113 | </configuration> |