Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Logging does not affect Google Cloud Functions output #44609

Open
andybarilla opened this issue Nov 21, 2024 · 1 comment
Open

JSON Logging does not affect Google Cloud Functions output #44609

andybarilla opened this issue Nov 21, 2024 · 1 comment
Labels

Comments

@andybarilla
Copy link

andybarilla commented Nov 21, 2024

Describe the bug

I have a project in Quarkus 3.15.1 which implements RawBackgroundFunction from quarkus-google-cloud-functions. I've included quarkus-logging-json as a dependency but it doesn't result in JSON output either running from java-function-invoker-1.3.1.jar or when deployed.

Specifically, I'm looking for MDC values to get logged.

Expected behavior

Should output JSON logs including MDC values

Actual behavior

Outputs standard text

How to Reproduce?

Example repo: https://github.com/andybarilla/json-gcf

Output of uname -a or ver

Darwin Mac.lan 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:11 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6020 arm64

Output of java -version

openjdk version "21.0.2" 2024-01-16 OpenJDK Runtime Environment GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30) OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)

Quarkus version or git rev

3.15.1

Build tool (ie. output of mvnw --version or gradlew --version)

Maven home: /Users/andy/.m2/wrapper/dists/apache-maven-3.9.8-bin/337e6d14/apache-maven-3.9.8 Java version: 21.0.2, vendor: GraalVM Community, runtime: /Library/Java/JavaVirtualMachines/graalvm-community-openjdk-21/Contents/Home Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "15.1.1", arch: "aarch64", family: "mac"

Additional information

No response

@andybarilla andybarilla added the kind/bug Something isn't working label Nov 21, 2024
Copy link

quarkus-bot bot commented Nov 21, 2024

/cc @loicmathieu (google-cloud)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant