Documentation ¶
Index ¶
- func GetErrorField(err error) []zap.Field
- func GetTraceField(ctx context.Context) zap.Field
- type AppLogger
- func (s *AppLogger) DPanic(msg interface{}, fields ...zap.Field)
- func (s *AppLogger) DPanicCtx(ctx context.Context, msg interface{}, fields ...zap.Field)
- func (s *AppLogger) DPanicf(fmtstr string, args ...interface{})
- func (s *AppLogger) Debug(msg interface{}, fields ...zap.Field)
- func (s *AppLogger) DebugCtx(ctx context.Context, msg interface{}, fields ...zap.Field)
- func (s *AppLogger) Debugf(fmtstr string, args ...interface{})
- func (s *AppLogger) Error(msg interface{}, fields ...zap.Field)
- func (s *AppLogger) Error2(err error, msg interface{}, fields ...zap.Field)
- func (s *AppLogger) ErrorCtx(ctx context.Context, msg interface{}, fields ...zap.Field)
- func (s *AppLogger) ErrorCtx2(ctx context.Context, err error, msg interface{}, fields ...zap.Field)
- func (s *AppLogger) Errorf(fmtstr string, args ...interface{})
- func (s *AppLogger) Fatal(msg interface{}, fields ...zap.Field)
- func (s *AppLogger) FatalCtx(ctx context.Context, msg interface{}, fields ...zap.Field)
- func (s *AppLogger) Fatalf(fmtstr string, args ...interface{})
- func (s *AppLogger) Info(msg interface{}, fields ...zap.Field)
- func (s *AppLogger) InfoCtx(ctx context.Context, msg interface{}, fields ...zap.Field)
- func (s *AppLogger) Infof(fmtstr string, args ...interface{})
- func (s *AppLogger) Panic(msg interface{}, fields ...zap.Field)
- func (s *AppLogger) PanicCtx(ctx context.Context, msg interface{}, fields ...zap.Field)
- func (s *AppLogger) Panicf(fmtstr string, args ...interface{})
- func (s *AppLogger) Printf(ctx context.Context, msg string, fields ...interface{})
- func (s *AppLogger) Warn(msg interface{}, fields ...zap.Field)
- func (s *AppLogger) WarnCtx(ctx context.Context, msg interface{}, fields ...zap.Field)
- func (s *AppLogger) Warnf(fmtstr string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetErrorField ¶
Types ¶
type AppLogger ¶
type AppLogger struct {
// contains filtered or unexported fields
}
func InitLogger ¶
InitLogger 初始化Logger对象
func LoggerByName ¶
Click to show internal directories.
Click to hide internal directories.