From 913d54693dd61e81125c5432827f6cef99b50a4e Mon Sep 17 00:00:00 2001 From: efiacor Date: Thu, 23 Feb 2023 16:24:51 +0000 Subject: [STRIMZI] Add logging overrides to kafka bridge Add ability to control http bridge logging Signed-off-by: efiacor Change-Id: I4ade04d6c8f67ce82a4360b99e93b4f3323c00df Issue-ID: DMAAP-1874 --- .../resources/config/log4j2.properties | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 kubernetes/strimzi/components/strimzi-kafka-bridge/resources/config/log4j2.properties (limited to 'kubernetes/strimzi/components/strimzi-kafka-bridge/resources') diff --git a/kubernetes/strimzi/components/strimzi-kafka-bridge/resources/config/log4j2.properties b/kubernetes/strimzi/components/strimzi-kafka-bridge/resources/config/log4j2.properties new file mode 100644 index 0000000000..e6ad8e0920 --- /dev/null +++ b/kubernetes/strimzi/components/strimzi-kafka-bridge/resources/config/log4j2.properties @@ -0,0 +1,38 @@ +name=BridgeConfig + +appender.console.type=Console +appender.console.name=STDOUT + +appender.console.layout.type = PatternLayout +appender.console.layout.pattern = [%d] %-5p <%-12.12c{1}:%L> [%-12.12t] %m%n + +# Alternate JSONLayout pattern config +#appender.console.layout.type=JSONLayout +#appender.console.layout.compact=true +#appender.console.layout.eventEol=true +#appender.console.layout.complete=true +#appender.console.layout.properties=false +#appender.console.layout.propertiesAsList=false +#appender.console.layout.locationInfo=true +#appender.console.layout.includeStacktrace=true +#appender.console.layout.stacktraceAsString=true +#appender.console.layout.includeNullDelimiter=false +#appender.console.layout.objectMessageAsJsonObject=true + +rootLogger.level=INFO +rootLogger.appenderRefs=console +rootLogger.appenderRef.console.ref=STDOUT +rootLogger.additivity=false + +logger.bridge.name=io.strimzi.kafka.bridge +logger.bridge.level=INFO +logger.bridge.appenderRefs=console +logger.bridge.appenderRef.console.ref=STDOUT +logger.bridge.additivity=false + +logger.healthy.name=http.openapi.operation.healthy +logger.healthy.level=WARN +logger.ready.name=http.openapi.operation.ready +logger.ready.level=WARN + +monitorInterval=30 -- cgit 1.2.3-korg