Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logback support in Quarkus

Tags:

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.

like image 614
ZAK Avatar asked Sep 08 '25 09:09

ZAK


1 Answers

There is a Quarkus extension which enables logback: https://quarkiverse.github.io/quarkiverse-docs/quarkus-logging-logback/dev/index.html

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
like image 164
StrekoZ Avatar answered Sep 10 '25 07:09

StrekoZ