How do I set the logging level in Quarkus?
Asked Answered
G

2

10

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?

Gunfire answered 7/3, 2019 at 12:40 Comment(0)
G
22

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.

Gunfire answered 7/3, 2019 at 12:42 Comment(0)
P
0

Just a detail, if you want to set the log level using VM Options.

From the docs:

If you add these properties on the command line, ensure the " character is escaped properly:

-Dquarkus.log.category.\"org.hibernate\".level=TRACE

Documentation: https://quarkus.io/guides/logging

Petrify answered 22/2 at 14:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.