From: Toine Siebelink Date: Tue, 10 May 2022 14:08:37 +0000 (+0000) Subject: Merge "Improve Local Running of CSIT Tests" X-Git-Tag: 3.1.0~129 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=cps.git;a=commitdiff_plain;h=f18001f3c8862b4887f29b060a2434aca1422dea;hp=59d2520ccc8911ee6eaffa03f4113458f5684895 Merge "Improve Local Running of CSIT Tests" --- diff --git a/cps-application/src/main/resources/application.yml b/cps-application/src/main/resources/application.yml index 4dfeee809..263ae6b3d 100644 --- a/cps-application/src/main/resources/application.yml +++ b/cps-application/src/main/resources/application.yml @@ -124,6 +124,7 @@ management: enabled: true logging: + format: json level: org: springframework: INFO diff --git a/cps-dependencies/pom.xml b/cps-dependencies/pom.xml index dcbc5f70b..73cca2391 100755 --- a/cps-dependencies/pom.xml +++ b/cps-dependencies/pom.xml @@ -200,6 +200,16 @@ mapstruct-processor ${mapstruct.version} + + net.logstash.logback + logstash-logback-encoder + 7.0.1 + + + org.codehaus.janino + janino + 3.1.7 + diff --git a/cps-service/pom.xml b/cps-service/pom.xml index aea122d17..b9d626874 100644 --- a/cps-service/pom.xml +++ b/cps-service/pom.xml @@ -107,6 +107,14 @@ org.springframework.boot spring-boot-starter-aop + + net.logstash.logback + logstash-logback-encoder + + + org.codehaus.janino + janino + org.codehaus.groovy diff --git a/cps-service/src/main/resources/logback-spring.xml b/cps-service/src/main/resources/logback-spring.xml index 3bba9f1bb..03076023b 100644 --- a/cps-service/src/main/resources/logback-spring.xml +++ b/cps-service/src/main/resources/logback-spring.xml @@ -1,6 +1,6 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + true + + { + "logTimeStamp": "${currentTimeStamp:-}", + "logTypeName": "", + "logLevel": "%level", + "traceId": "%X{traceId:-}", + "statusCode": "", + "principalId": "${username:-}", + "serviceName": "${springAppName:-}", + "message": "%message", + "spanId": "%X{spanId:-}", + "processId": "${PID:-}", + "threadName": "%thread", + "class": "%logger{40}", + "exception": "%wEx" + } + + + + + - - - ${all-log-pattern} - + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -