Control logging level at runtime

Hi all,

I want to be able to change the log level in parts of the codebase at runtime.

Is there a library that could help me do that?

For example, the Spring framework supports this out of the box:

Thank you