Logback Support in Quarkus

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

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.

Elena Rostova
Author

Elena Rostova

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.