Logback support in Quarkus

I have tried to add logback in Quarkus, but later realised Quarkus does not support logback. If I am wrong, May I know how logback can be configured in Quarkus with an example. Thanks in advance.

3 Answers

There is a Quarkus extension which enables logback:

However there are some restrictions, mostly due to internal Quarkus specifics:

  1. Your Quarkus version should match version used for 'quarkus-logging-logback' extension build
  2. If you want to use own appenders/listeners in 'logback.xml' - you should put them in separate library and include them in your project through library
1

No, in Quarkus, we standardized on using JBoss Logging for the logging.

And AFAIK we don't even have a bridge from logback to JBoss Logging as for some other logging components so you can't even use the Logback API in your application.

1

In currrent version 1.6.0.final of Quarkus You can use one of the Logging API's below

  • JDK java.util.logging
  • JBoss Logging
  • SLF4J
  • Apache Commons Logging
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like