Reorganize dashboard into subfolders
[portal/ric-dashboard.git] / dashboard / webapp-backend / src / test / resources / logback-test.xml
diff --git a/dashboard/webapp-backend/src/test/resources/logback-test.xml b/dashboard/webapp-backend/src/test/resources/logback-test.xml
new file mode 100644 (file)
index 0000000..f8ae6fa
--- /dev/null
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ========================LICENSE_START=================================
+  O-RAN-SC
+  %%
+  Copyright (C) 2019 - 2020 AT&T Intellectual Property
+  %%
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+  
+       http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+  ========================LICENSE_END===================================
+  -->
+
+<configuration>
+
+       <!-- Basic logback configuration for dev and test -->
+
+       <!-- component name is log file basename -->
+       <property name="componentName" value="ric-dashboard-be"/>
+
+       <!-- The directory where logs are written -->
+       <property name="logDirectory" value="logs" />
+
+       <!-- basic pattern -->
+       <property name="pattern" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC} [%thread] %-5level %logger{36} - %msg%n"/>
+
+       <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
+               <!-- defaults to type ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
+               <encoder>
+                       <pattern>${pattern}</pattern>
+               </encoder>
+       </appender>
+
+       <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
+               <file>${logDirectory}/${componentName}.log</file>
+               <append>true</append>
+               <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
+                       <fileNamePattern>${logDirectory}/${componentName}.%i.log.zip</fileNamePattern>
+                       <minIndex>1</minIndex>
+                       <maxIndex>5</maxIndex>
+               </rollingPolicy>
+               <triggeringPolicy
+                       class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
+                       <maxFileSize>1MB</maxFileSize>
+               </triggeringPolicy>
+               <!-- defaults to type ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
+               <encoder>
+                       <pattern>${pattern}</pattern>
+               </encoder>
+       </appender>
+
+       <!-- Set default level for all loggers -->
+       <root level="INFO">
+               <appender-ref ref="CONSOLE" />
+               <appender-ref ref="FILE" />
+       </root>
+
+       <!-- Code under test should be chatty --> >
+       <logger name="org.oransc.ric.portal.dashboard" level="DEBUG" />
+
+       <!-- Watch authentication done by EPSDK-FW -->
+       <logger name="org.onap.portalsdk.core.onboarding" level="DEBUG" />
+
+</configuration>