Reduce log output 72/79772/3
authorMatthieuGeerebaert <matthieu.geerebaert@orange.com>
Wed, 6 Mar 2019 10:44:52 +0000 (11:44 +0100)
committerMatthieuGeerebaert <matthieu.geerebaert@orange.com>
Wed, 6 Mar 2019 11:19:31 +0000 (12:19 +0100)
At startup and testing phase
Disable spring logging

Change-Id: Ia357e8528a57204be34be94e45a745380de49653
Issue-ID: EXTAPI-207
Signed-off-by: MatthieuGeerebaert <matthieu.geerebaert@orange.com>
src/main/resources/application-test.properties
src/main/resources/application.properties
src/test/resources/logback-test.xml [new file with mode: 0644]

index ca04a05..028040d 100644 (file)
 nbi.version                         = v3
 
 # SERVER
-server.servlet.context-path                  = /nbi/api/${nbi.version}
+server.servlet.context-path         = /nbi/api/${nbi.version}
 server.port                         = 8080
 
 # LOGGING
-logging.level.                      = ERROR
+logging.level.org.springframework   = OFF
+logging.level.root                  = OFF
+spring.main.banner-mode             = off
 
 # ONAP
 onap.lcpCloudRegionId               = RegionOne
@@ -61,11 +63,11 @@ so.owning.entity.name               = OE-generic
 so.project.name                     = Project-generic
 
 # DMAAP
-dmaap.host                           = http://127.0.0.1:8091
-dmaap.topic                          = AAI-EVENT
-dmaap.consumergroup                  = NBICG1
-dmaap.consumerid                     = NBIC1
-dmaap.timeout                        = 2000
+dmaap.host                          = http://127.0.0.1:8091
+dmaap.topic                         = AAI-EVENT
+dmaap.consumergroup                 = NBICG1
+dmaap.consumerid                    = NBIC1
+dmaap.timeout                       = 2000
 
 # MSB
 msb.enabled                         = false
index 70d640c..741682e 100644 (file)
@@ -27,7 +27,11 @@ server.servlet.context-path          = /nbi/api/${nbi.version}
 server.port                          = 8080
 
 # LOGGING
-logging.level.                       = INFO
+logging.level.                       = WARN
+logging.level.org.springframework    = OFF
+logging.level.org.onap               = INFO
+logging.level.root                   = WARN
+spring.main.banner-mode              = off
 
 # ONAP
 onap.lcpCloudRegionId                = RegionOne
@@ -44,8 +48,8 @@ serviceOrder.schedule                = 5000
 serviceOrder.initial                 = 1
 executionTask.schedule               = 2000
 executionTask.initial                = 1
-dmaapCheck.schedule               = 10000
-dmaapCheck.initial                = 1
+dmaapCheck.schedule                  = 10000
+dmaapCheck.initial                   = 1
 
 # SDC
 sdc.host                             = http://10.0.3.1:8080
diff --git a/src/test/resources/logback-test.xml b/src/test/resources/logback-test.xml
new file mode 100644 (file)
index 0000000..342220f
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+        Copyright (c) 2019 Orange
+
+        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.
+
+-->
+<configuration>
+  <include resource="org/springframework/boot/logging/logback/base.xml"/>
+  <logger level="OFF" name="org.springframework"/>
+</configuration>
\ No newline at end of file