From b88e865ab162225f91eb43b3543398fe98efacc0 Mon Sep 17 00:00:00 2001 From: vempo Date: Mon, 13 Aug 2018 16:59:18 +0300 Subject: Added default logging configuration Change-Id: I912418e3d83b612efe1dda4f7050acbc2a6d77e8 Issue-ID: SDC-1530 Signed-off-by: vempo --- workflow-designer-be/pom.xml | 19 +- .../src/main/resources/logback.xml | 194 +++++++++++++++++++++ 2 files changed, 207 insertions(+), 6 deletions(-) create mode 100644 workflow-designer-be/src/main/resources/logback.xml diff --git a/workflow-designer-be/pom.xml b/workflow-designer-be/pom.xml index 60a7cd0b..7b2197e0 100644 --- a/workflow-designer-be/pom.xml +++ b/workflow-designer-be/pom.xml @@ -88,6 +88,11 @@ ${onap.version} runtime + + ch.qos.logback + logback-classic + runtime + org.openecomp.sdc openecomp-sdc-versioning-core @@ -128,11 +133,11 @@ ${lombok.version} provided - - org.springframework.boot - spring-boot-starter-actuator - provided - + + org.springframework.boot + spring-boot-starter-actuator + provided + @@ -182,7 +187,9 @@ artifact / - java ${JAVA_OPTIONS} -jar /${project.build.finalName}.jar + + java ${JAVA_OPTIONS} -jar /${project.build.finalName}.jar + diff --git a/workflow-designer-be/src/main/resources/logback.xml b/workflow-designer-be/src/main/resources/logback.xml new file mode 100644 index 00000000..f0a4bcb2 --- /dev/null +++ b/workflow-designer-be/src/main/resources/logback.xml @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + ${log.location}/error.log + + + INFO + + + + + AUDIT + + NEUTRAL + DENY + + + + + METRICS + + NEUTRAL + DENY + + + + ${log.location}/error.log.%i + + 1 + 10 + + + + 20MB + + + + + %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestId}|%thread||%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%level||%X{ErrorCode}|%X{ErrorDescription}|%msg%n + + + + + + + ${log.location}/debug.log + + + DEBUG + ACCEPT + DENY + + + + ${log.location}/debug.log.%i + + 1 + 10 + + + + 20MB + + + + + %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestId}|%msg%n + + + + + + + + + + + ${log.location}/audit.log + + + + AUDIT + + DENY + ACCEPT + + + + ${log.location}/audit.log.%i + + 1 + 10 + + + + 20MB + + + + + %X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%thread||%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceId}|%level||%X{ServerIpAddress}|%X{ElapsedTime}|%X{Server}|%X{ClientIpAddress}||||||||%msg%n + + + + + + + ${log.location}/metrics.log + + + + METRICS + + DENY + ACCEPT + + + + ${log.location}/metrics.log.%i + + 1 + 10 + + + + 20MB + + + + + %X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%thread||%X{ServiceName}|%X{TargetEntity}|%X{TargetServiceName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceId}|%level||%X{ServerIpAddress}|%X{ElapsedTime}|%X{Server}|%X{ClientIpAddress}||||||||||%msg%n + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit 1.2.3-korg