Check out the Issue Explorer
Looking to fund some work? You can submit a new Funded Issue here.
Our current logging doesn't support dynamic log control. We want a finer degree of control for log level.
## Current Design
We have a log package in utils. And we usually use log.GetLogInstance() function to print out log message.
The function we used has level support like Info(), Debug(), Error(), etc. However, we are outputting all the logs right now and there is no way to control the output.
We have log level like info/debug/warn, but we can't control the output of log level dynamically. For example, in a regular run, I don't want to see all the debug log. But for my testing and debug, I want to see all the debug log.
1. Use a command line option to support dynamic log level, for example, like -debug to output all debug logs.
2. Provide a dynamic mechanism to control the log level in runtime, for example, send a special command to the node program to control the level of output log. So that we can enable the log during debugging and no need to re-start the program.