Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set the logging level in Quarkus?

Tags:

quarkus

I would like to change the logging level of my Quarkus application.

How can I do that either from the configuration file or at runtime?

like image 513
geoand Avatar asked Dec 13 '22 12:12

geoand


1 Answers

The property that controls the root logging level is quarkus.log.level (and defaults to INFO).

This property can be set either in application.properties or can be overridden at runtime using -Dquarkus.log.level=DEBUG.

You can also specify more fine grained logging using quarkus.log.category.

For example for RESTEasy you could set:

quarkus.log.category."org.jboss.resteasy".level=DEBUG

For more information about logging in Quarkus, please check this guide.

like image 139
geoand Avatar answered Feb 03 '23 17:02

geoand