From 9128de9c240ddd2596a9ec8dfd200ff67cfbbd5e Mon Sep 17 00:00:00 2001 From: "halil.cakal" Date: Fri, 23 Sep 2022 15:22:41 +0100 Subject: Format logging Enable REST log belongs to A1 Policy API, add log formatter. Issue-ID: CCSDK-3766 Change-Id: If89b5467f93ad8f98310817c9beeaf7a1302afdb Signed-off-by: halil.cakal --- a1-policy-management/config/application.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/a1-policy-management/config/application.yaml b/a1-policy-management/config/application.yaml index f0f53375..80bb1568 100644 --- a/a1-policy-management/config/application.yaml +++ b/a1-policy-management/config/application.yaml @@ -41,8 +41,11 @@ logging: org.springframework: ERROR org.springframework.data: ERROR org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR + org.springframework.web.servlet.DispatcherServlet: INFO org.onap.ccsdk.oran.a1policymanagementservice: INFO - # org.onap.ccsdk.oran.a1policymanagementservice.tasks: TRACE + pattern: + console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] [%thread] %logger{20} - %msg%n" + file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] [%thread] %logger{20} - %msg%n" file: name: /var/log/policy-agent/application.log server: -- cgit 1.2.3-korg