Description
Rationale
There should be more options on logging format for Geth.
At the moment, the only option available is the verbosity level.
For example, logging parsing is a great tool for managing highly available nodes.
I am suggesting two flags, one that would change the formatted log to JSON and a second flag to specify the output log file, rather than dump onto stdout
.
These two flags combined would allow a variety of tools to monitor the health of a Geth node.
Implementation
The log/
folder, containing the log15
package already parses the log messages in JSON format, but it converts to syslog before dumping. The first mentioned flag would skip the conversation.
Also, it's (to my knowledge) trivial to create a flag that receives one argument (file) and writes the log into it rather than stdout
.