Versions in this module Expand all Collapse all v0 v0.1.0 Nov 11, 2025 Changes in this version + var PrintConfig = Config + func Blue(text string) string + func Bluef(text string, args ...any) string + func Bold(text string, args ...any) string + func Debug(format string) + func Debugf(format string, args ...any) + func Error(format string) + func Errorf(format string, args ...any) + func Fatal(format string) + func Fatalf(format string, args ...any) + func Formatf(cf func(string, ...any) string, format string, args ...any) string + func Green(text string) string + func Greenf(text string, args ...any) string + func Info(format string) + func Infof(format string, args ...any) + func IsConsole() bool + func Magenta(text string) string + func Magentaf(text string, args ...any) string + func PrinterInit(conf Config) error + func Printf(cf func(string, ...any) string, format string, args ...any) + func Red(text string) string + func RedOnWhite(text string) string + func RedOnWhitef(text string, args ...any) string + func Redf(text string, args ...any) string + func Verbose(format string, args ...any) + func Warn(format string) + func Warnf(format string, args ...any) + func Yellow(text string) string + func Yellowf(text string, args ...any) string + type Config struct + AllToErr bool + Level LogLevel + LogFile string + Mode PrintMode + Silence bool + WarnToErr bool + type LogLevel int + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const WarnLevel + type PrintMode int + const FileMode + const NormalMode + const ProductionMode + type Printer interface + Debug func(format string) + Debugf func(format string, args ...any) + Error func(format string) + Errorf func(format string, args ...any) + Fatal func(format string) + Fatalf func(format string, args ...any) + Info func(format string) + Infof func(format string, args ...any) + Warn func(format string) + Warnf func(format string, args ...any) + var GlobalPrinter Printer = colorConsole + func NewConsoleColorPrinter() Printer + func NewConsoleRawPrinter() Printer + func NewLoggerPrinter() Printer