Documentation
¶
Index ¶
- Variables
- func Debug(args ...any)
- func Debugf(template string, args ...any)
- func Debugln(args ...any)
- func Error(args ...any)
- func Errorf(template string, args ...any)
- func Errorln(args ...any)
- func Fatal(args ...any)
- func Fatalf(template string, args ...any)
- func Fatalln(args ...any)
- func Info(args ...any)
- func Infof(template string, args ...any)
- func Infoln(args ...any)
- func Level() zapcore.Level
- func Sugared() *zap.SugaredLogger
- func Warn(args ...any)
- func Warnf(template string, args ...any)
- func Warnln(args ...any)
- type Logger
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = New(WithLevel(-1))
Functions ¶
func Sugared ¶
func Sugared() *zap.SugaredLogger
Types ¶
type Logger ¶
type Logger interface {
Sugared() *zap.SugaredLogger
Level() zapcore.Level
Debug(args ...any)
Info(args ...any)
Warn(args ...any)
Error(args ...any)
Fatal(args ...any)
Debugln(args ...any)
Infoln(args ...any)
Warnln(args ...any)
Errorln(args ...any)
Fatalln(args ...any)
Debugf(template string, args ...any)
Infof(template string, args ...any)
Warnf(template string, args ...any)
Errorf(template string, args ...any)
Fatalf(template string, args ...any)
With(args ...any) Logger
By(caller common.Named) Logger
}
type Option ¶
type Option func(*logger)
func NoStdout ¶ added in v0.4.8
func NoStdout() Option
NoStdout drops the console core; records go only to the file writer, if any.
func WithFileWriter ¶
func WithTimeFormat ¶ added in v0.1.11
Click to show internal directories.
Click to hide internal directories.