Documentation
¶
Index ¶
- Constants
- func Debug(msg string)
- func Debugf(format string, args ...any)
- func Debugln(args ...any)
- func Error(msg string)
- func Errorf(format string, args ...any)
- func Errorln(args ...any)
- func Fatal(msg string)
- func Fatalf(format string, args ...any)
- func Fatalln(args ...any)
- func Info(msg string)
- func Infof(format string, args ...any)
- func Infoln(args ...any)
- func SetLevel(level Level)
- func Warn(msg string)
- func Warnf(format string, args ...any)
- func Warnln(args ...any)
- type Level
- type TextHandler
Constants ¶
View Source
const ( Reset = "\033[0m" Red = "\033[31m" Yellow = "\033[33m" Blue = "\033[34m" Green = "\033[32m" Magenta = "\033[35m" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TextHandler ¶
type TextHandler struct {
// contains filtered or unexported fields
}
func NewTextHandler ¶
func NewTextHandler(level slog.Level) *TextHandler
Click to show internal directories.
Click to hide internal directories.