log

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Statement string = "Statement"
	TimeMs    string = "TimeMs"
)
View Source
const (
	InterfaceTrack = "interface"
)

Variables

View Source
var (
	TeamsLog *logger.Logger
	Config   *logger.Config
)

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Fatal

func Fatal(args ...interface{})

func Fatalf

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

func GinLogger

func GinLogger() gin.HandlerFunc

func Info

func Info(args ...interface{})

func Infof

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

func Panic

func Panic(args ...interface{})

func Panicf

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

func Recovery

func Recovery(logger *zap.Logger, stack bool) gin.HandlerFunc

func Warn

func Warn(args ...interface{})

func Warnf

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

func WithConfig

func WithConfig()

应用更新配置文件

Types

type GormLog

type GormLog struct {
	gormLogger.Config
	gormLogger.LogLevel
	// contains filtered or unexported fields
}

func NewGorm

func NewGorm() *GormLog

func (*GormLog) Error

func (gl *GormLog) Error(ctx context.Context, msg string, arg ...interface{})

func (*GormLog) Info

func (gl *GormLog) Info(ctx context.Context, msg string, arg ...interface{})

func (*GormLog) LogMode

func (gl *GormLog) LogMode(level gormLogger.LogLevel) gormLogger.Interface

func (*GormLog) Trace

func (gl *GormLog) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error)

func (*GormLog) Warn

func (gl *GormLog) Warn(ctx context.Context, msg string, arg ...interface{})

type NsqLoggerI

type NsqLoggerI struct{}

func NsqLogger

func NsqLogger() *NsqLoggerI

func (*NsqLoggerI) Output

func (l *NsqLoggerI) Output(calldepth int, s string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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