Replies: 2 comments 2 replies
|
Would say keep it because it's very common to have to change logger levels in something like a Spring App with Actuator (for example, Spring Boot Admin offers a nice gui to do that), and also to do things like on error threshold >= value, change log level for package. |
|
I don't care that i need to restart to apply, and if it improves the code base maintainability or performance or anything I prefer this lib to not support runtime changes. The only thing that matters to me is that i can programatically setup the configuration during the application startup (and not whenever else) from a shared module in my monorepo. Plus, the only configuration that matter to me is the logging level of certain packages, I don't see myself changing any other config as long as the defaults are good, my use case is simply a lot of services running in a k8s cluster, updating versions is trivial when using ci/cd tools. I should be able to use my own externalized configuration lib if I need more flexibility, but still using it at application startup only. |
Uh oh!
There was an error while loading. Please reload this page.
Penna supports runtime configuration change at the moment. This means that, if you have access to the the ConfigManager, you can, during runtime, change a certain logger's (or a hierarchy of loggers) level.
However, if people feel like this is not important (i.e. it is cheap enough to update a config and restart the application), then removing this feature can greatly simplify the code.
Although I'm inclined to keep the feature, I'd like to hear what people think about it before making stronger commitments.
The implications of keeping the feature are:
penna-yaml-configwould need to support file watch (i.e. if penna's configuration is stored as a ConfigMap in kubernetes, they'd be automatically propagated upon update);dev.The implications of removing the feature are:
6 votes ·
All reactions