Perhaps we can consider creating different levels of net logging.
For instance, we could separate lower-frequency, important peer-level events (netpeers
) from very high-frequency message-level passing (netmessages
).
Categories and naming suggestions welcome.
One further suggestion by @jnewbery was:
No objections. I’d take it ever further though, and add an (optional) logging severity (DEBUG/INFO/WARNING/ERROR or similar) that can be added to all log messages. The user can then either choose what severity logs they want for each category (eg = -debug=net:warning,tor:debug etc), or have a logging post-processor that can filter by severity/category.
I like the idea of optional logging levels (debug/info/warning/error) for each category, including the default debug log, but agreement on which events go into which level may be difficult to achieve.
To begin with, I propose separating the net logging into at least two categories. Thoughts? Implementation suggestions?