diff options
author | clecius <clecius.martinkoski@gmail.com> | 2022-08-08 17:42:32 -0300 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2022-09-03 18:39:44 +0200 |
commit | 5303673160fb8a52102a55774eb99dae1ebf5eda (patch) | |
tree | c78b84d43934dd28689556a676731df46b653263 /deployment/src | |
parent | c567bf458883882e23cf642098e764c61d2ae094 (diff) |
Quarkus: On/off toggle via configuration.
Change-Id: I2b1b5796501784b4e21697fea85d5e1e12a3e12b
Diffstat (limited to 'deployment/src')
-rw-r--r-- | deployment/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/deployment/GoogleCloudLoggingProcessor.java | 5 |
1 files changed, 3 insertions, 2 deletions
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)); } } |