Documentation ¶
Index ¶
- func Close(syncer Syncer)
- func DPanic(args ...interface{})
- func DPanicf(template string, args ...interface{})
- func DPanicw(msg string, keysAndValues ...interface{})
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func Desugar() *zap.Logger
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Fatalw(msg string, keysAndValues ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func NewDebug() *zap.SugaredLogger
- func NewGormLogger() logger.Interface
- func NewLog() *zap.SugaredLogger
- func NewRotate(config *lumberjack.Logger) *zap.SugaredLogger
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Panicw(msg string, keysAndValues ...interface{})
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
- type GormLogger
- func (p *GormLogger) Error(ctx context.Context, str string, args ...interface{})
- func (p *GormLogger) Info(ctx context.Context, str string, args ...interface{})
- func (p *GormLogger) LogMode(level logger.LogLevel) logger.Interface
- func (p *GormLogger) Trace(ctx context.Context, begin time.Time, ...)
- func (p *GormLogger) Warn(ctx context.Context, str string, args ...interface{})
- type Syncer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDebug ¶ added in v1.1.2
func NewDebug() *zap.SugaredLogger
func NewGormLogger ¶ added in v1.1.3
func NewLog ¶ added in v1.1.2
func NewLog() *zap.SugaredLogger
func NewRotate ¶ added in v1.1.2
func NewRotate(config *lumberjack.Logger) *zap.SugaredLogger
Types ¶
type GormLogger ¶ added in v1.1.3
type GormLogger struct { SlowThreshold time.Duration IgnoreRecordNotFoundError bool // contains filtered or unexported fields }
func (*GormLogger) Error ¶ added in v1.1.3
func (p *GormLogger) Error(ctx context.Context, str string, args ...interface{})
func (*GormLogger) Info ¶ added in v1.1.3
func (p *GormLogger) Info(ctx context.Context, str string, args ...interface{})
func (*GormLogger) LogMode ¶ added in v1.1.3
func (p *GormLogger) LogMode(level logger.LogLevel) logger.Interface
Click to show internal directories.
Click to hide internal directories.