Documentation
¶
Index ¶
- Constants
- func Error(v ...any)
- func Errorf(format string, v ...any)
- func Fatal(v ...any)
- func Fatalf(format string, v ...any)
- func Print(v ...any)
- func Printf(format string, v ...any)
- func SetQuiet(quiet bool)
- func Warnf(format string, v ...any)
- type Logger
- func (l *Logger) Error(v ...any)
- func (l *Logger) Errorf(format string, v ...any)
- func (l *Logger) Fatal(v ...any)
- func (l *Logger) Fatalf(format string, v ...any)
- func (l *Logger) Print(v ...any)
- func (l *Logger) Printf(format string, v ...any)
- func (l *Logger) Quiet() bool
- func (l *Logger) SetQuiet(quiet bool)
- func (l *Logger) Warnf(format string, v ...any)
Constants ¶
View Source
const ( RedColor = "\033[31m" YellowColor = "\033[33m" ResetColor = "\033[0m" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) Fatal ¶
Fatal logs an error message and exits with status code 1 (always logs to stderr)
Click to show internal directories.
Click to hide internal directories.