From bc5ec3f83a29188a46372ad358830413efd9ddd7 Mon Sep 17 00:00:00 2001 From: Dominik Mizyn Date: Mon, 31 Aug 2020 12:05:19 +0200 Subject: [ESR] Add logs to STDOUT This commit add STDOUT appender to root level logging. Additionally, it approximates the logback.xml file to ONAP Application Logging Specification v1.2 Issue-ID: OOM-2514 Signed-off-by: Dominik Mizyn Change-Id: I1ae3fa5af0fc4ac27fdad185299cc659efe81c2d --- .../charts/esr-server/resources/config/logback.xml | 67 ++++++++++++---------- kubernetes/esr/charts/esr-server/values.yaml | 11 ++++ 2 files changed, 49 insertions(+), 29 deletions(-) (limited to 'kubernetes/esr/charts') diff --git a/kubernetes/esr/charts/esr-server/resources/config/logback.xml b/kubernetes/esr/charts/esr-server/resources/config/logback.xml index c647f3d1e1..fcc9f250d9 100644 --- a/kubernetes/esr/charts/esr-server/resources/config/logback.xml +++ b/kubernetes/esr/charts/esr-server/resources/config/logback.xml @@ -15,35 +15,38 @@ # limitations under the License. --> - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - + + + - + + + @@ -57,7 +60,7 @@ - 256 + ${queueSize} @@ -73,7 +76,7 @@ - 256 + ${queueSize} @@ -93,16 +96,16 @@ - 256 + ${queueSize} - ${debugLogDirectory}/${debugLogName}.log + ${logDirectory}/${debugLogName}.log - ${debugLogDirectory}/${debugLogName}.log.%d + ${logDirectory}/${debugLogName}.log.%d ${debugPattern} @@ -110,11 +113,17 @@ - 256 + ${queueSize} true + + + ${consolePattern} + + + @@ -127,9 +136,9 @@ - + + - - + \ No newline at end of file diff --git a/kubernetes/esr/charts/esr-server/values.yaml b/kubernetes/esr/charts/esr-server/values.yaml index f3f4f88ebf..5a858742b5 100644 --- a/kubernetes/esr/charts/esr-server/values.yaml +++ b/kubernetes/esr/charts/esr-server/values.yaml @@ -65,6 +65,17 @@ service: ingress: enabled: false +log: + componentName: esr + subcomponentName: esr-server + debug: true + scan: + enabled: false + logDir: /var/log/onap + queueSize: 256 + root: + level: INFO + resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little -- cgit 1.2.3-korg