log

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxDebug

func CtxDebug(ctx context.Context, msg string, fields ...zap.Field)

func CtxDebugf

func CtxDebugf(ctx context.Context, template string, args ...interface{})

func CtxError

func CtxError(ctx context.Context, msg string, fields ...zap.Field)

func CtxErrorf

func CtxErrorf(ctx context.Context, template string, args ...interface{})

func CtxFatal

func CtxFatal(ctx context.Context, msg string, fields ...zap.Field)

func CtxFatalf

func CtxFatalf(ctx context.Context, template string, args ...interface{})

func CtxInfo

func CtxInfo(ctx context.Context, msg string, fields ...zap.Field)

func CtxInfof

func CtxInfof(ctx context.Context, template string, args ...interface{})

func CtxWarn

func CtxWarn(ctx context.Context, msg string, fields ...zap.Field)

func CtxWarnf

func CtxWarnf(ctx context.Context, template string, args ...interface{})

func Debug

func Debug(msg string, fields ...zap.Field)

func Debugf

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

func Error

func Error(msg string, fields ...zap.Field)

func Errorf

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

func Fatal

func Fatal(msg string, fields ...zap.Field)

func Fatalf

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

func GetGormLogLevel

func GetGormLogLevel(level string) logger.LogLevel

func Info

func Info(msg string, fields ...zap.Field)

func Infof

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

func NewGormLogger

func NewGormLogger(conf *config.Config, zapLogger *zap.Logger) logger.Interface

func NewLogger

func NewLogger(conf *config.Config) *zap.Logger

func Sync

func Sync()

func Warn

func Warn(msg string, fields ...zap.Field)

func Warnf

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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