A MJ
A MJ

Reputation: 115

How to know what log levels used in production spring boot application?

I am wondering if there is a way to know what are the logging levels set in spring boot application, which is running on production. I know I can check some logging level statements in application.yml. But I am not sure if it is edited after starting the application. So, I want to confirm what logging levels are used in the application without stopping or restarting. Can you provide inputs on this?

Upvotes: 0

Views: 164

Answers (1)

Roberto Manfreda
Roberto Manfreda

Reputation: 2623

If actuators are enabled on your project you can call the /actuator/loggers endpoint:
$curl 'http://localhost:8080/actuator/loggers' -i -X GET

For more reference

Upvotes: 2

Related Questions