Documentation
¶
Index ¶
- func Debug(message ...any)
- func Debugf(template string, message ...any)
- func Error(message ...any)
- func Errorf(template string, message ...any)
- func Fatal(message ...any)
- func Fatalf(template string, message ...any)
- func Info(message ...any)
- func Infof(template string, message ...any)
- func SetLogLevel(ll Level)
- func SetScopeLogLevel(scope string, ll Level)
- func Warn(message ...any)
- func Warnf(template string, message ...any)
- type Level
- type Logger
- type Sugar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetScopeLogLevel ¶
Types ¶
type Level ¶
type Level int
Level is log level of logger
const ( // LevelDebug is the lowest level of verbosity. LevelDebug Level = 0 // LevelInfo is the default level of verbosity. LevelInfo Level = 1 // LevelWarning is the default level of verbosity. LevelWarning Level = 2 // LevelError is the default level of verbosity. LevelError Level = 3 // LevelFatal is the highest level of verbosity. LevelFatal Level = 4 )
type Logger ¶
type Sugar ¶
type Sugar interface {
Info(args ...any)
Infof(template string, args ...any)
Infoln(args ...any)
Debug(args ...any)
Debugf(template string, args ...any)
Debugln(args ...any)
Warning(args ...any)
Warningf(template string, args ...any)
Warningln(args ...any)
Error(args ...any)
Errorf(template string, args ...any)
Errorln(args ...any)
Fatal(args ...any)
Fatalf(template string, args ...any)
Fatalln(args ...any)
V(l int) bool
Sync() error
}
Sugar define default logger for logger
func NewConsole ¶
func NewDefaultConsole ¶
Click to show internal directories.
Click to hide internal directories.