From 5303673160fb8a52102a55774eb99dae1ebf5eda Mon Sep 17 00:00:00 2001 From: clecius Date: Mon, 8 Aug 2022 17:42:32 -0300 Subject: Quarkus: On/off toggle via configuration. Change-Id: I2b1b5796501784b4e21697fea85d5e1e12a3e12b --- .../jsonlogging/deployment/GoogleCloudLoggingProcessor.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'deployment/src') diff --git a/deployment/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/deployment/GoogleCloudLoggingProcessor.java b/deployment/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/deployment/GoogleCloudLoggingProcessor.java index 7d4a93f..fdfcb1c 100644 --- a/deployment/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/deployment/GoogleCloudLoggingProcessor.java +++ b/deployment/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/deployment/GoogleCloudLoggingProcessor.java @@ -5,6 +5,7 @@ package eu.mulk.quarkus.googlecloud.jsonlogging.deployment; import eu.mulk.quarkus.googlecloud.jsonlogging.runtime.GoogleCloudJsonLoggingRecorder; +import eu.mulk.quarkus.googlecloud.jsonlogging.runtime.GoogleJsonLogConfig; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; @@ -38,7 +39,7 @@ public class GoogleCloudLoggingProcessor { */ @BuildStep @Record(ExecutionTime.RUNTIME_INIT) - public LogConsoleFormatBuildItem setUpFormatter(GoogleCloudJsonLoggingRecorder recorder) { - return new LogConsoleFormatBuildItem(recorder.initialize()); + public LogConsoleFormatBuildItem setUpFormatter(GoogleCloudJsonLoggingRecorder recorder, GoogleJsonLogConfig config) { + return new LogConsoleFormatBuildItem(recorder.initialize(config)); } } -- cgit v1.2.3