logs

package
v1.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 12 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close added in v1.1.2

func Close(syncer Syncer)

func DPanic added in v1.1.6

func DPanic(args ...interface{})

func DPanicf added in v1.1.6

func DPanicf(template string, args ...interface{})

func DPanicw added in v1.1.6

func DPanicw(msg string, keysAndValues ...interface{})

func Debug

func Debug(args ...interface{})

func Debugf added in v1.1.6

func Debugf(template string, args ...interface{})

func Debugw added in v1.1.6

func Debugw(msg string, keysAndValues ...interface{})

func Desugar added in v1.1.8

func Desugar() *zap.Logger

func Error

func Error(args ...interface{})

func Errorf added in v1.1.6

func Errorf(template string, args ...interface{})

func Errorw added in v1.1.6

func Errorw(msg string, keysAndValues ...interface{})

func Fatal added in v1.1.6

func Fatal(args ...interface{})

func Fatalf added in v1.1.6

func Fatalf(template string, args ...interface{})

func Fatalw added in v1.1.6

func Fatalw(msg string, keysAndValues ...interface{})

func Info

func Info(args ...interface{})

func Infof added in v1.1.6

func Infof(template string, args ...interface{})

func Infow added in v1.1.6

func Infow(msg string, keysAndValues ...interface{})

func NewDebug added in v1.1.2

func NewDebug() *zap.SugaredLogger

func NewGormLogger added in v1.1.3

func NewGormLogger() logger.Interface

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

func Panic added in v1.0.37

func Panic(args ...interface{})

func Panicf added in v1.1.6

func Panicf(template string, args ...interface{})

func Panicw added in v1.1.6

func Panicw(msg string, keysAndValues ...interface{})

func Warn

func Warn(args ...interface{})

func Warnf added in v1.1.6

func Warnf(template string, args ...interface{})

func Warnw added in v1.1.6

func Warnw(msg string, keysAndValues ...interface{})

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

func (*GormLogger) Trace added in v1.1.3

func (p *GormLogger) Trace(
	ctx context.Context,
	begin time.Time,
	call func() (sql string, rowsAffected int64),
	err error,
)

func (*GormLogger) Warn added in v1.1.3

func (p *GormLogger) Warn(ctx context.Context, str string, args ...interface{})

type Syncer added in v1.1.2

type Syncer interface {
	Sync() error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL