Documentation
¶
Overview ¶
Package log is a wrapper around colorizing the log output. It has functions that allow you to simply write output to the screen for various scenarios.
- Start ==> Blue - Success ==> Green - Info ==> Cyan - Debug ==> Magenta - Warn ==> Yellow - Error ==> Red - Fatal ==> Red (and exits the program)
Index ¶
- func Debug(format string, a ...any)
- func Error(format string, a ...any)
- func ErrorWriter() *logErrorWriter
- func Fatal(format string, a ...any)
- func Info(format string, a ...any)
- func Message(format string, a ...any)
- func Start(format string, a ...any)
- func Success(format string, a ...any)
- func Verbose(v bool, format string, a ...any)
- func Warn(format string, a ...any)
- func Writer() *logWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶ added in v0.19.1
Debug prints a message to the terminal in magenta, for debugging output.
func ErrorWriter ¶ added in v0.17.1
func ErrorWriter() *logErrorWriter
ErrorWriter returns a new logErrorWriter for use as an io.Writer for error output.
func Fatal ¶
Fatal prints a message to the terminal in red, then exits the program with an error code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.