Logback support in Quarkus
Matthew Barrera
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:
- Your Quarkus version should match version used for 'quarkus-logging-logback' extension build
- 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
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.
1In 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