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 | 0d1c0e8 | 2022-04-08 14:36:15 -0500 | [diff] [blame] | 4 | Modifications Copyright (C) 2021-2022 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/pdpx/error.log</file> |
| 23 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 24 | <fileNamePattern>/var/log/onap/policy/pdpx/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/pdpx/debug.log</file> |
| 44 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 45 | <fileNamePattern>/var/log/onap/policy/pdpx/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/pdpx/network.log</file> |
| 62 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 63 | <fileNamePattern>/var/log/onap/policy/pdpx/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 | |
jhh | 0d1c0e8 | 2022-04-08 14:36:15 -0500 | [diff] [blame] | 98 | <appender name="PromLogback" class="io.prometheus.client.logback.InstrumentedAppender"/> |
| 99 | |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 100 | <root level="INFO"> |
| 101 | <appender-ref ref="AsyncDebugOut" /> |
| 102 | <appender-ref ref="AsyncErrorOut" /> |
| 103 | <appender-ref ref="AsyncStdOut" /> |
jhh | 0d1c0e8 | 2022-04-08 14:36:15 -0500 | [diff] [blame] | 104 | <appender-ref ref="PromLogback" /> |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 105 | </root> |
| 106 | |
jhh | 417bcba | 2021-04-08 20:56:17 -0500 | [diff] [blame] | 107 | </configuration> |