Logback has a feature to scan changes in logback.xml (per this) - this is a great feature which allows long running applications to be shipped with INFO as default level to be changed to DEBUG when something has to be briefly investigated.
But in my recent app (hosted on my company's K8s cluster as a Docker container), am unable to use the above feature because:
- dont yet have the provision to host external volumes wherein I can put my logback.xml (to be changed by developers during debugging)
- dont yet have the provision to change environment variables in a running container without a restart
- dont have a JNDI server to map log variables
Given this, is there a way I can build a provision for developers to change the logging level of my application at runtime without an app/container restart?