juno icon indicating copy to clipboard operation
juno copied to clipboard

Dynamic logging lvl

Open Exca-DK opened this issue 1 year ago • 2 comments

Issue

Currently, logging is only set at the bootstrap with the defined log level. It would be beneficial to have the capability to dynamically change that through RPC. Furthermore, for greater extendability, it would be valuable to make it configurable per module.

Rationale

Why should this feature exist? Enhanced debugging and observability. Often, managing nodes requires specific logging for a limited duration. Maintaining a low level for the entire node lifetime is unnecessary. Additionally, some loggers in the codebase have hardcoded lvl such as the one in DB.

What are the use cases? The feature would be particularly useful for debugging modules eg. enabling more verbose logs for the p2p module while keeping the rest of the loggers unchanged or temporarily lowering the global logging level.

Implementation

Do you have ideas regarding the implementation of this feature? yes Are you willing to implement this feature? yes

Exca-DK avatar Aug 28 '23 21:08 Exca-DK