summaryrefslogtreecommitdiff
path: root/example/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'example/src/main/java')
-rw-r--r--example/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/RandomNumberParameterProvider.java14
-rw-r--r--example/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/RootResource.java36
2 files changed, 0 insertions, 50 deletions
diff --git a/example/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/RandomNumberParameterProvider.java b/example/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/RandomNumberParameterProvider.java
deleted file mode 100644
index 7e4158c..0000000
--- a/example/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/RandomNumberParameterProvider.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package eu.mulk.quarkus.googlecloud.jsonlogging.example;
-
-import eu.mulk.quarkus.googlecloud.jsonlogging.KeyValueParameter;
-import eu.mulk.quarkus.googlecloud.jsonlogging.StructuredParameter;
-import eu.mulk.quarkus.googlecloud.jsonlogging.StructuredParameterProvider;
-import java.util.concurrent.ThreadLocalRandom;
-
-public class RandomNumberParameterProvider implements StructuredParameterProvider {
-
- @Override
- public StructuredParameter getParameter() {
- return KeyValueParameter.of("randomNumber", ThreadLocalRandom.current().nextInt());
- }
-}
diff --git a/example/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/RootResource.java b/example/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/RootResource.java
deleted file mode 100644
index 6fa42cd..0000000
--- a/example/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/example/RootResource.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package eu.mulk.quarkus.googlecloud.jsonlogging.example;
-
-import eu.mulk.quarkus.googlecloud.jsonlogging.KeyValueParameter;
-import eu.mulk.quarkus.googlecloud.jsonlogging.Label;
-import javax.annotation.PostConstruct;
-import javax.enterprise.context.ApplicationScoped;
-import javax.ws.rs.GET;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import org.jboss.logging.Logger;
-import org.jboss.logging.MDC;
-
-@Produces("text/plain")
-@Path("/")
-@ApplicationScoped
-public class RootResource {
-
- static final Logger log = Logger.getLogger(RootResource.class);
-
- @PostConstruct
- public void init() {
- log.warn("Hey!");
- }
-
- @GET
- public String hello() {
- MDC.put("requestMethod", "GET");
- log.infof(
- "Hello %s.",
- "Mulkiatsch",
- KeyValueParameter.of("a", "b"),
- Label.of("app", "foo"),
- KeyValueParameter.of("version", 10));
- throw new IllegalStateException();
- }
-}