Guide
Output Management
The NoteWriter commands write to stdout using fmt.PrintX
methods.
The NoteWriter commands also log to stderr using Go log
package (see internal/core/logger.go
):
By default, no log messages are displayed. Use global flags to enable them:
--v
: show all messages with a verbosity level >=info
--vv
: show all messages with a verbosity level >=debug
--vvv
: show all messages with a verbosity level >=trace
Ex:
Commands can show progress using \r
:
When using verbose flags, log messages can break progress statuses:
A solution is to redirect stderr to another terminal (or another file):
The command output will continue to be displayed in the current terminal and debugging logs will flow to the second terminal.