Coder Social home page Coder Social logo

Comments (2)

dfa1 avatar dfa1 commented on August 20, 2024

hello :)

I'm using version 1.0.1 with Quarkus 1.13.7 without issues (but I'm using maven).
Beware: versions before 1.0.1 have a nasty race condition fixed recently by 684bf64

from quarkus-logging-json.

wanderingfella avatar wanderingfella commented on August 20, 2024

Thanks.

Things I have tried, all with version 1.13.7.Final of Qarkus

implementation 'io.quarkus:quarkus-jackson'

Outcome : JSON logging works

Adding the below dependency, to quarkus logging

implementation 'io.quarkiverse.loggingjson:quarkiverse-logging-json:0.2.3'

Outcome, doesn't work =>
java.lang.RuntimeException: java.lang.IllegalArgumentException: Multiple matching properties for name "log.console.json" property was matched by both boolean io.quarkiverse.loggingjson.Config.enable and boolean io.quarkus.logging.json.runtime.JsonConfig.enable. This is likely because you have an incompatible combination of extensions that both define the same properties (e.g. including both reactive and blocking database extensions)

Then removing
implementation 'io.quarkus:quarkus-logging-json'

Works, as in the logging comes out in JSON.

Next step, try to use key values...
i.e. LOG.info("message ", KeyValueStructuredArgument.kv("test", "2"));

Doesn't compile using,
import org.jboss.logging.Logger;

Switched to using sl4j

and it works!

Apologies.

from quarkus-logging-json.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.