aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/org/onap/portal/history/logging/LoggerProperties.java
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-12-12 11:49:43 +0100
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-12-12 11:52:17 +0100
commit79322e1eaabd39210dc855ca1e78f734c1790fc4 (patch)
tree0adb15ff4dd898fdb06791c0d8e319b1842b08d1 /app/src/main/java/org/onap/portal/history/logging/LoggerProperties.java
parent71322adbc15045c62537b2c590d0b24758634ecf (diff)
Enrich log messages with further metadata about requests
This includes: - endpoint - execution time - trace id Issue-ID: PORTALNG-69 Change-Id: I5d07c89313811875bff8c1c519464e53381b5db1 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'app/src/main/java/org/onap/portal/history/logging/LoggerProperties.java')
-rw-r--r--app/src/main/java/org/onap/portal/history/logging/LoggerProperties.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/src/main/java/org/onap/portal/history/logging/LoggerProperties.java b/app/src/main/java/org/onap/portal/history/logging/LoggerProperties.java
new file mode 100644
index 0000000..c142b4f
--- /dev/null
+++ b/app/src/main/java/org/onap/portal/history/logging/LoggerProperties.java
@@ -0,0 +1,11 @@
+package org.onap.portal.history.logging;
+
+import java.util.List;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+@ConfigurationProperties("logger")
+public record LoggerProperties(
+ String traceIdHeaderName,
+ Boolean enabled, List<String> excludePaths) {
+} \ No newline at end of file