I need to enable dynamic log level changes for my spring microservices using actuator endpoint for multiple instance of microservices .
Asked
Active
Viewed 786 times
2

Michael Petch
- 46,082
- 8
- 107
- 198

Saurav Narayan
- 35
- 5
-
What are current properties you have set in `application.properties` ? Do you have `logback.xml` ? – iamrajshah Jan 02 '19 at 06:14
-
management.endpoints.web.exposure.include=info,health,prometheus,metrics,loggers – Saurav Narayan Jan 02 '19 at 06:28
-
management.endpoints.loggers.sensitive=false – Saurav Narayan Jan 02 '19 at 06:28
-
yes i have logback.xml also – Saurav Narayan Jan 02 '19 at 06:31
-
Did you try https://stackoverflow.com/questions/53166572/change-logging-level-at-runtime-in-spring-boot-application/53166801#53166801 ? – Sukhpal Singh Jan 02 '19 at 07:23
-
2@SukhpalSingh this approach is for single micro-service instance but i have multiple instance of a micro service running and i want to enable the changes in all the instances – Saurav Narayan Jan 02 '19 at 07:30