Search code examples
javaspring-bootlogbackcloud-foundrypcf

Pivotal Cloud Foundry - Application Logging


I have a microservice developed using Spring Boot. The application is deployed in pivotal cloud foundry. I have set the logs levels in logback.xml which is part of the application. In order to change the log level , I have to update the logback.xml and rebuild / redeploy the app. Is there a better way to do this without having to redeploy the app? Is there a way to set log level as env variable in PCF?


Solution

  • I have not used logback so don't know much on it. But may be this thread can help - Set Logging Level in Spring Boot via Environment Variable