1 <?xml version="1.0" encoding="UTF-8"?>
3 ========================LICENSE_START=================================
6 Copyright (C) 2019 AT&T Intellectual Property
7 Modifications Copyright (C) 2020 Nordix Foundation
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
13 http://www.apache.org/licenses/LICENSE-2.0
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===================================
25 <!-- Basic logback configuration for dev and test -->
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{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", UTC} [%thread] %-5level %logger{36} - %msg%n"/>
34 <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
35 <!-- defaults to type ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
37 <pattern>${pattern}</pattern>
41 <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
42 <file>${logDirectory}/${componentName}.log</file>
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>
50 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
51 <maxFileSize>10MB</maxFileSize>
53 <!-- defaults to type ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
55 <pattern>${pattern}</pattern>
59 <!-- Set default level for all loggers -->
61 <appender-ref ref="CONSOLE" />
62 <appender-ref ref="FILE" />
65 <!-- Code under test should be chatty --> >
66 <logger name="org.oransc.portal.nonrtric.controlpanel" level="DEBUG" />
68 <!-- Watch authentication done by EPSDK-FW -->
69 <logger name="org.onap.portalsdk.core.onboarding.crossapi" level="DEBUG" />
71 <!-- Report request URLs -->
72 <logger name="org.springframework.web.client.RestTemplate" level="DEBUG" />
74 <!-- for debugging security
75 <logger name="org.springframework.security" level="DEBUG" />