Documentation
¶
Overview ¶
Package colorlog has various Print functions that can be called to change the color of the text in standard out
Index ¶
- func Debug(msg string, keyvals ...interface{})
- func Error(msg string, keyvals ...interface{})
- func Fatal(msg string, keyvals ...interface{})
- func Info(msg string, keyvals ...interface{})
- func PrintError(msg any)
- func PrintErrorAndExit(msg any)
- func PrintInfo(msg any)
- func PrintSubtleInfo(msg any)
- func PrintSuccess(msg any)
- func PrintWarning(msg any)
- func SetTimeFunction(f log.TimeFunction)
- func Warn(msg string, keyvals ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(msg string, keyvals ...interface{})
Debug logs a debug message with structured logging
func Error ¶
func Error(msg string, keyvals ...interface{})
Error logs an error message with structured logging
func Info ¶
func Info(msg string, keyvals ...interface{})
Info logs an info message with structured logging
func PrintErrorAndExit ¶
func PrintErrorAndExit(msg any)
PrintErrorAndExit prints red colored text to standard out then exits 1
func PrintSubtleInfo ¶
func PrintSubtleInfo(msg any)
PrintSubtleInfo prints magenta colored text to standard out
func PrintSuccess ¶
func PrintSuccess(msg any)
PrintSuccess prints green colored text to standard out
func PrintWarning ¶
func PrintWarning(msg any)
PrintWarning prints yellow colored text to standard out. Unlike PrintInfo, this is not suppressed by GHORG_QUIET.
func SetTimeFunction ¶
func SetTimeFunction(f log.TimeFunction)
SetTimeFunction allows setting a custom time function (useful for testing)
Types ¶
This section is empty.