From b8fbc37809dac5102292e6aa83668e149ed27102 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 11 May 2021 06:50:45 +0200 Subject: Restructure, rename, modularize. Change-Id: I4aa6cfb486fe002cf65405ec9c2876e3114aaf46 --- .../deployment/GoogleCloudLoggingProcessor.java | 24 ++++++++++++++++++++++ .../jsonlogging/GoogleCloudLoggingProcessor.java | 23 --------------------- 2 files changed, 24 insertions(+), 23 deletions(-) create mode 100644 deployment/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/deployment/GoogleCloudLoggingProcessor.java delete mode 100644 deployment/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLoggingProcessor.java (limited to 'deployment/src/main') 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 new file mode 100644 index 0000000..aea89b9 --- /dev/null +++ b/deployment/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/deployment/GoogleCloudLoggingProcessor.java @@ -0,0 +1,24 @@ +package eu.mulk.quarkus.googlecloud.jsonlogging.deployment; + +import eu.mulk.quarkus.googlecloud.jsonlogging.GoogleCloudJsonLoggingRecorder; +import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.annotations.ExecutionTime; +import io.quarkus.deployment.annotations.Record; +import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.deployment.builditem.LogConsoleFormatBuildItem; + +class GoogleCloudLoggingProcessor { + + private static final String FEATURE = "googlecloud-jsonlogging"; + + @BuildStep + FeatureBuildItem feature() { + return new FeatureBuildItem(FEATURE); + } + + @BuildStep + @Record(ExecutionTime.RUNTIME_INIT) + LogConsoleFormatBuildItem setUpFormatter(GoogleCloudJsonLoggingRecorder recorder) { + return new LogConsoleFormatBuildItem(recorder.initialize()); + } +} diff --git a/deployment/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLoggingProcessor.java b/deployment/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLoggingProcessor.java deleted file mode 100644 index 8ecf000..0000000 --- a/deployment/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLoggingProcessor.java +++ /dev/null @@ -1,23 +0,0 @@ -package eu.mulk.quarkus.observability.googlecloud.jsonlogging; - -import io.quarkus.deployment.annotations.BuildStep; -import io.quarkus.deployment.annotations.ExecutionTime; -import io.quarkus.deployment.annotations.Record; -import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.builditem.LogConsoleFormatBuildItem; - -class GoogleCloudLoggingProcessor { - - private static final String FEATURE = "googlecloud-jsonlogging"; - - @BuildStep - FeatureBuildItem feature() { - return new FeatureBuildItem(FEATURE); - } - - @BuildStep - @Record(ExecutionTime.RUNTIME_INIT) - LogConsoleFormatBuildItem setUpFormatter(GoogleCloudLoggingRecorder recorder) { - return new LogConsoleFormatBuildItem(recorder.initialize()); - } -} -- cgit v1.2.3