Harmony node program support dynamic log level setting.
There is an RPC method supported by the node to dynamically adjust the log level.
hmy_setLogVerbosity
Noted, the DebugEnabled configuration has to be set to true to enable this rpc call.
[RPCOpt]
DebugEnabled = true
#-------
The default log level is 3, INFO.
If you want to expose more detailed log, you may set it to 5 using the following command. Run it on the server,
curl -H "Content-Type: application/json" -d '{"method":"hmy_setLogVerbosity","params":[5],"id":1}' http://127.0.0.1:9500
If you want to see less log, you may set it to 2 or even 1.
curl -H "Content-Type: application/json" -d '{"method":"hmy_setLogVerbosity","params":[2],"id":1}' http://127.0.0.1:9500