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