Relative Content

Tag Archive for javaspring-bootlogginglogbackconsul

Consul refresh event with @RefreshScope stops application logback logging?

When a property is changed on Consul, all logging inside of the application stops. I utilize @RefreshScope on a few @Configuration classes, nowhere else and on nothing related to logging. The application is started inside of a docker container and a few of the logging properties such as logging location and file name are picked up at runtime via environment variables – this works fine. We use logback for logging and it is configured via xml. I’m suspecting that the logback configuration reloads on a consul refresh event and isn’t able to continue logging afterwards.