e966bc677edb81535e99d0efeb6415dff2df834f
[portal/nonrtric-controlpanel.git] / webapp-backend / src / main / resources / logback.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ========================LICENSE_START=================================
4   O-RAN-SC
5   %%
6   Copyright (C) 2019 AT&T Intellectual Property
7   Modifications Copyright (C) 2020 Nordix Foundation
8   %%
9   Licensed under the Apache License, Version 2.0 (the "License");
10   you may not use this file except in compliance with the License.
11   You may obtain a copy of the License at
12
13        http://www.apache.org/licenses/LICENSE-2.0
14  
15   Unless required by applicable law or agreed to in writing, software
16   distributed under the License is distributed on an "AS IS" BASIS,
17   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   See the License for the specific language governing permissions and
19   limitations under the License.
20   ========================LICENSE_END===================================
21   -->
22
23 <configuration>
24
25         <!-- Basic logback configuration for dev and test -->
26
27         <!-- component name is log file basename -->
28         <property name="componentName" value="nonrtric-controlpanel"></property>
29         <!-- gather files in a subdirectory -->
30         <property name="logDirectory" value="logs" />
31         <!-- output pattern -->
32         <property name="pattern" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC} [%thread] %-5level %logger{36} - %msg%n"/>
33
34         <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
35                 <!-- defaults to type ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
36                 <encoder>
37                         <pattern>${pattern}</pattern>
38                 </encoder>
39         </appender>
40
41         <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
42                 <file>${logDirectory}/${componentName}.log</file>
43                 <append>true</append>
44                 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
45                         <fileNamePattern>${logDirectory}/${componentName}.%i.log.zip</fileNamePattern>
46                         <minIndex>1</minIndex>
47                         <maxIndex>9</maxIndex>
48                 </rollingPolicy>
49                 <triggeringPolicy
50                         class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
51                         <maxFileSize>10MB</maxFileSize>
52                 </triggeringPolicy>
53                 <!-- defaults to type ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
54                 <encoder>
55                         <pattern>${pattern}</pattern>
56                 </encoder>
57         </appender>
58
59         <!-- Set default level for all loggers -->
60         <root level="INFO">
61                 <appender-ref ref="CONSOLE" />
62                 <appender-ref ref="FILE" />
63         </root>
64
65         <!-- Code under test should be chatty --> >
66         <logger name="org.oransc.portal.nonrtric.controlpanel" level="DEBUG" />
67
68         <!-- Watch authentication done by EPSDK-FW -->
69         <logger name="org.onap.portalsdk.core.onboarding.crossapi" level="DEBUG" />
70
71         <!-- Report request URLs -->
72         <logger name="org.springframework.web.client.RestTemplate" level="DEBUG" />
73
74         <!-- for debugging security
75         <logger name="org.springframework.security" level="DEBUG" />
76         -->
77
78 </configuration>