Documentation
¶
Index ¶
- func Any(key string, val any) zapcore.Field
- func Bool(key string, val bool) zapcore.Field
- func Debug(msg string, args ...zapcore.Field)
- func Debugf(template string, args ...interface{})
- func Duration(key string, val time.Duration) zapcore.Field
- func Err(err error) zapcore.Field
- func Error(msg string, args ...zapcore.Field)
- func Errorf(template string, args ...interface{})
- func Fatal(msg string, args ...zapcore.Field)
- func Fatalf(template string, args ...interface{})
- func Float64(key string, val float64) zapcore.Field
- func Info(msg string, args ...zapcore.Field)
- func Infof(template string, args ...interface{})
- func InitLogger(consoleDebugModel bool, fileDebugModel bool, logPath string) error
- func Int(key string, val int) zapcore.Field
- func Int64(key string, val int64) zapcore.Field
- func NewLogger(consoleDebugModel bool, fileDebugModel bool, logPath string) (*zap.Logger, *zap.SugaredLogger)
- func Panic(msg string, args ...zapcore.Field)
- func Panicf(template string, args ...interface{})
- func Str(key string, val string) zapcore.Field
- func Sync() error
- func Time(key string, val time.Time) zapcore.Field
- func Warn(msg string, args ...zapcore.Field)
- func Warnf(template string, args ...interface{})
- type ObjectBase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ObjectBase ¶
type ObjectBase struct {
}
func (ObjectBase) MarshalLogObject ¶
func (u ObjectBase) MarshalLogObject(enc zapcore.ObjectEncoder) error
实现 zapcore.ObjectMarshaler 接口
Click to show internal directories.
Click to hide internal directories.