blob: 206b19b0497850b01b4547afa4523d2599e6b657 [file] [log] [blame]
saul.gill7124a4b2021-09-09 12:02:49 +01001<!--
2 ============LICENSE_START=======================================================
FrancescoFioraEst9c79e262022-02-22 13:12:19 +00003 Copyright (C) 2021-2022 Nordix Foundation.
saul.gill7124a4b2021-09-09 12:02:49 +01004 ================================================================================
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/pap/error.log</file>
22 <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000023 <fileNamePattern>/var/log/onap/policy/policy-clamp-runtime-acm/error.%d{yyyy-MM-dd}.%i.log.zip
saul.gill7124a4b2021-09-09 12:02:49 +010024 </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/pap/debug.log</file>
43 <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000044 <fileNamePattern>/var/log/onap/policy/policy-clamp-runtime-acm/debug.%d{yyyy-MM-dd}.%i.log.zip
saul.gill7124a4b2021-09-09 12:02:49 +010045 </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">
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000060 <file>/var/log/onap/policy/policy-clamp-runtime-acm/network.log</file>
saul.gill7124a4b2021-09-09 12:02:49 +010061 <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000062 <fileNamePattern>/var/log/onap/policy/policy-clamp-runtime-acm/network.%d{yyyy-MM-dd}.%i.log.zip
saul.gill7124a4b2021-09-09 12:02:49 +010063 </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>