aravind.est | 8d72830 | 2022-12-07 12:26:28 +0000 | [diff] [blame^] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2022 Nordix Foundation. 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" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 21 | <file>/var/log/onap/policy/a1pms-participant/error.log</file> |
| 22 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 23 | <fileNamePattern>/var/log/onap/policy/a1pms-participant/error.%d{yyyy-MM-dd}.%i.log.zip |
| 24 | </fileNamePattern> |
| 25 | <maxFileSize>50MB</maxFileSize> |
| 26 | <maxHistory>30</maxHistory> |
| 27 | <totalSizeCap>10GB</totalSizeCap> |
| 28 | </rollingPolicy> |
| 29 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 30 | <level>WARN</level> |
| 31 | </filter> |
| 32 | <encoder> |
| 33 | <pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n</pattern> |
| 34 | </encoder> |
| 35 | </appender> |
| 36 | |
| 37 | <appender name="AsyncErrorOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 38 | <appender-ref ref="ErrorOut" /> |
| 39 | </appender> |
| 40 | |
| 41 | <appender name="DebugOut" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 42 | <file>/var/log/onap/policy/a1pms-participant/debug.log</file> |
| 43 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 44 | <fileNamePattern>/var/log/onap/policy/a1pms-participant/debug.%d{yyyy-MM-dd}.%i.log.zip |
| 45 | </fileNamePattern> |
| 46 | <maxFileSize>50MB</maxFileSize> |
| 47 | <maxHistory>30</maxHistory> |
| 48 | <totalSizeCap>10GB</totalSizeCap> |
| 49 | </rollingPolicy> |
| 50 | <encoder> |
| 51 | <pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n</pattern> |
| 52 | </encoder> |
| 53 | </appender> |
| 54 | |
| 55 | <appender name="AsyncDebugOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 56 | <appender-ref ref="DebugOut" /> |
| 57 | </appender> |
| 58 | |
| 59 | <appender name="NetworkOut" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 60 | <file>/var/log/onap/policy/a1pms-participant/network.log</file> |
| 61 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 62 | <fileNamePattern>/var/log/onap/policy/a1pms-participant/network.%d{yyyy-MM-dd}.%i.log.zip |
| 63 | </fileNamePattern> |
| 64 | <maxFileSize>50MB</maxFileSize> |
| 65 | <maxHistory>30</maxHistory> |
| 66 | <totalSizeCap>10GB</totalSizeCap> |
| 67 | </rollingPolicy> |
| 68 | <encoder> |
| 69 | <pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%t]%m%n</pattern> |
| 70 | </encoder> |
| 71 | </appender> |
| 72 | |
| 73 | <appender name="AsyncNetworkOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 74 | <appender-ref ref="NetworkOut" /> |
| 75 | </appender> |
| 76 | |
| 77 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
| 78 | <encoder> |
| 79 | <Pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n</Pattern> |
| 80 | </encoder> |
| 81 | </appender> |
| 82 | |
| 83 | <appender name="AsyncStdOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 84 | <appender-ref ref="STDOUT" /> |
| 85 | </appender> |
| 86 | |
| 87 | <logger name="network" level="INFO" additivity="false"> |
| 88 | <appender-ref ref="AsyncNetworkOut" /> |
| 89 | <appender-ref ref="AsyncStdOut" /> |
| 90 | </logger> |
| 91 | |
| 92 | <logger name="org.eclipse.jetty.server.RequestLog" level="info" additivity="false"> |
| 93 | <appender-ref ref="AsyncNetworkOut" /> |
| 94 | <appender-ref ref="AsyncStdOut" /> |
| 95 | </logger> |
| 96 | |
| 97 | <root level="INFO"> |
| 98 | <appender-ref ref="AsyncDebugOut" /> |
| 99 | <appender-ref ref="AsyncErrorOut" /> |
| 100 | <appender-ref ref="AsyncStdOut" /> |
| 101 | </root> |
| 102 | |
| 103 | </configuration> |