Documentation
¶
Index ¶
- func DPanic(args ...interface{})
- func DPanicW(fn func(log Logger))
- func DPanicf(format string, a ...interface{})
- func Debug(args ...interface{})
- func DebugW(fn func(log Logger))
- func Debugf(format string, a ...interface{})
- func ErrWith(name string, err error)
- func Error(args ...interface{})
- func ErrorW(fn func(log Logger))
- func Errorf(format string, a ...interface{})
- func Fatal(args ...interface{})
- func FatalW(fn func(log Logger))
- func Fatalf(format string, a ...interface{})
- func Info(args ...interface{})
- func InfoW(fn func(log Logger))
- func Infof(format string, a ...interface{})
- func Panic(args ...interface{})
- func PanicW(fn func(log Logger))
- func Panicf(format string, a ...interface{})
- func SetDefault(logger *zap.Logger) (err error)
- func Warn(args ...interface{})
- func WarnW(fn func(log Logger))
- func Warnf(format string, a ...interface{})
- type Logger
- type M
- type Xlog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefault ¶ added in v0.0.8
SetDefault 设置默认的zap logger
Types ¶
type Xlog ¶ added in v0.0.15
type Xlog interface {
Debug(args ...interface{})
Info(args ...interface{})
Warn(args ...interface{})
Error(args ...interface{})
DPanic(args ...interface{})
Panic(args ...interface{})
Fatal(args ...interface{})
DebugW(func(log Logger))
InfoW(func(log Logger))
WarnW(func(log Logger))
ErrorW(func(log Logger))
DPanicW(func(log Logger))
PanicW(func(log Logger))
FatalW(func(log Logger))
Debugf(format string, a ...interface{})
Infof(format string, a ...interface{})
Warnf(format string, a ...interface{})
Errorf(format string, a ...interface{})
Panicf(format string, a ...interface{})
Fatalf(format string, a ...interface{})
DPanicf(format string, a ...interface{})
Named(name string, opts ...zap.Option) Xlog
}
Directories
¶
| Path | Synopsis |
|---|---|
|
writer/rotate/file-rotatelogs
package rotatelogs is a port of File-RotateLogs from Perl (https://metacpan.org/release/File-RotateLogs), and it allows you to automatically rotate output files when you write to them according to the filename pattern that you can specify.
|
package rotatelogs is a port of File-RotateLogs from Perl (https://metacpan.org/release/File-RotateLogs), and it allows you to automatically rotate output files when you write to them according to the filename pattern that you can specify. |
Click to show internal directories.
Click to hide internal directories.