NearNodeFlash / NearNodeFlash.github.io

View this document https://nearnodeflash.github.io/
Apache License 2.0
3 stars 3 forks source link

Local Server - Enhanced & Structured Logging #101

Open NateThornton opened 1 year ago

NateThornton commented 1 year ago

Currently, local server commands (CLI commands issued on the Rabbit), are logged to the commands.log file. This is useful for analysis but is another location that must be checked for any failure while debugging

With the introduction of structured logging in NearNodeFlash/nnf-ec#71 , we should instead use the ec.Logger and various log levels to trace the server commands and failures. Examples are included in the nnf, nvme, and fabric managers.

Suggested verbosity levels are:

Info V(0) - Always on (unless explicitly disabled)

Debug V(1) - On during development, Off in production

Verbose V(2) - On during early development, Off otherwise.