Documentation
¶
Overview ¶
Package logging provides a global logger for the CLI.
The global logger's standard methods (i.e., log.Infof, log.Debugf, etc.) write log entries to disk under ~/.validator/validator-<timestamp>/logs/validator.log.
The ErrorCLI, FatalCLI, and InfoCLI method logs entries to the console. They are used to guide users through an interactive TUI experience.
Index ¶
- Variables
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func ErrorCLI(msg string, args ...any)
- func FatalCLI(msg string, args ...any)
- func Header(s string)
- func HeaderCustom(s string, bgColor, textColor pterm.Color)
- func Info(format string, v ...interface{})
- func InfoCLI(format string, v ...interface{})
- func Out() io.Writer
- func SetLevel(logLevel string)
- func SetOutput(runLoc string)
- func Warn(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Newline determines whether a newline character is appended to the end of each log message. Newline = true )
Functions ¶
func HeaderCustom ¶
HeaderCustom prints a header to the console with custom colors
func InfoCLI ¶
func InfoCLI(format string, v ...interface{})
InfoCLI prints an info message to the terminal & creates a log entry
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.