How do I set the logging level in Quarkus?

穿精又带淫゛_ 提交于 2020-07-07 14:08:56

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/55044060/how-do-i-set-the-logging-level-in-quarkus

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!