1 <?xml version="1.0" encoding="UTF-8"?>
3 ========================LICENSE_START=================================
6 Copyright (C) 2019 AT&T Intellectual Property and Nokia
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ========================LICENSE_END===================================
25 <!-- Basic logback configuration for dev and test -->
27 <!-- component name is log file basename -->
28 <property name="componentName" value="ric-dashboard"></property>
29 <!-- gather files in a subdirectory - usually a volume in docker -->
30 <property name="logDirectory" value="logs" />
31 <!-- basic 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>5</maxIndex>
50 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
51 <maxFileSize>1MB</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.ric.portal.dashboard" level="DEBUG" />