If you want to change the logging level of an already running Spring Boot application, you can take a look at spring -cloud-config. Refer to: http://cloud.spring.io/spring-cloud-config/ :
Spring Cloud Config provides server and client support for external configuration in a distributed system. With Config Server, you have a central place to manage the external properties for applications in all environments.
You can centrally manage properties on the configuration server and create an entry for your application.properties file (check bootstrap.properties) in your current application
spring.application.name=application name
Using the @RefreshScope annotation in your client application, you can update the application runtime and view the updated logging level property.
source share