blob: 6e96dc168190c7f6c96dd268708bd05c82ef889c [file] [log] [blame]
jhhd4258672020-08-09 12:08:08 -05001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2020 Bell Canada. All rights reserved.
jhh417bcba2021-04-08 20:56:17 -05004 Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
jhhd4258672020-08-09 12:08:08 -05005 ================================================================================
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"
22 class="ch.qos.logback.core.rolling.RollingFileAppender">
23 <file>/var/log/onap/policy/distribution/error.log</file>
24 <rollingPolicy
25 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
26 <fileNamePattern>/var/log/onap/policy/distribution/error.%d{yyyy-MM-dd}.%i.log.zip
27 </fileNamePattern>
28 <maxFileSize>50MB</maxFileSize>
29 <maxHistory>30</maxHistory>
30 <totalSizeCap>10GB</totalSizeCap>
31 </rollingPolicy>
32 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
33 <level>WARN</level>
34 </filter>
35 <encoder>
36 <pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n</pattern>
37 </encoder>
38 </appender>
39
40 <appender name="AsyncErrorOut"
41 class="ch.qos.logback.classic.AsyncAppender">
42 <appender-ref ref="ErrorOut" />
43 </appender>
44
45 <appender name="DebugOut"
46 class="ch.qos.logback.core.rolling.RollingFileAppender">
47 <file>/var/log/onap/policy/distribution/debug.log</file>
48 <rollingPolicy
49 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
50 <fileNamePattern>/var/log/onap/policy/distribution/debug.%d{yyyy-MM-dd}.%i.log.zip
51 </fileNamePattern>
52 <maxFileSize>50MB</maxFileSize>
53 <maxHistory>30</maxHistory>
54 <totalSizeCap>10GB</totalSizeCap>
55 </rollingPolicy>
56 <encoder>
57 <pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n</pattern>
58 </encoder>
59 </appender>
60
61 <appender name="AsyncDebugOut"
62 class="ch.qos.logback.classic.AsyncAppender">
63 <appender-ref ref="DebugOut" />
64 </appender>
65
66 <appender name="NetworkOut"
67 class="ch.qos.logback.core.rolling.RollingFileAppender">
68 <file>/var/log/onap/policy/distribution/network.log</file>
69 <rollingPolicy
70 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
71 <fileNamePattern>/var/log/onap/policy/distribution/network.%d{yyyy-MM-dd}.%i.log.zip
72 </fileNamePattern>
73 <maxFileSize>50MB</maxFileSize>
74 <maxHistory>30</maxHistory>
75 <totalSizeCap>10GB</totalSizeCap>
76 </rollingPolicy>
77 <encoder>
78 <pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%t]%m%n</pattern>
79 </encoder>
80 </appender>
81
82 <appender name="AsyncNetworkOut"
83 class="ch.qos.logback.classic.AsyncAppender">
84 <appender-ref ref="NetworkOut" />
85 </appender>
86
87 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
88 <encoder>
jhh417bcba2021-04-08 20:56:17 -050089 <Pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n</Pattern>
jhhd4258672020-08-09 12:08:08 -050090 </encoder>
91 </appender>
92
93 <appender name="AsyncStdOut" class="ch.qos.logback.classic.AsyncAppender">
94 <appender-ref ref="STDOUT" />
95 </appender>
96
97 <logger name="network" level="INFO" additivity="false">
98 <appender-ref ref="AsyncNetworkOut" />
99 <appender-ref ref="AsyncStdOut" />
100 </logger>
101
102 <logger name="org.eclipse.jetty.server.RequestLog" level="info"
103 additivity="false">
104 <appender-ref ref="AsyncNetworkOut" />
105 <appender-ref ref="AsyncStdOut" />
106 </logger>
107
108 <root level="INFO">
109 <appender-ref ref="AsyncDebugOut" />
110 <appender-ref ref="AsyncErrorOut" />
111 <appender-ref ref="AsyncStdOut" />
112 </root>
113
jhh417bcba2021-04-08 20:56:17 -0500114</configuration>