Dynamically set per-request log level using logback filters

Ravinder Thirumala
2 min readAug 26, 2021

Logging is a fundamental part of any application, It benefits not only for developers but also to support teams and business people equally. Logging Frameworks allows us to specify log levels so that the application can be easily configured to just log messages that are marked as the specified log level or with lower level.

Changing Log Level of an application to DEBUG for a given request and then capturing contextual data in the logs for that request will greatly benefit for debugging.

Ravinder Thirumala

Java enthusiast and open source contributor