log

package
v0.0.0-...-47eb5cf Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 7 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CtxLogKey = ctxLogKeyType{}

Functions

func Ctx

func Ctx(ctx context.Context) *log.MLogger

func Debug

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

func Error

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

func Fatal

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

func Info

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

func L

func L() *zap.Logger

func Panic

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

func Prop

func Prop() *log.ZapProperties

func SetLevel

func SetLevel(level zapcore.Level)

func Warn

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

func With

func With(fields ...zap.Field) *log.MLogger

func WithFields

func WithFields(ctx context.Context, fields ...zap.Field) context.Context

func WithTraceID

func WithTraceID(ctx context.Context, traceID string) context.Context

Types

type RateLog

type RateLog struct {
	// contains filtered or unexported fields
}

func NewRateLog

func NewRateLog(ratePerSecond float64, log *zap.Logger) *RateLog

func (*RateLog) Debug

func (r *RateLog) Debug(msg string, fields ...zap.Field)

func (*RateLog) Info

func (r *RateLog) Info(msg string, fields ...zap.Field)

Jump to

Keyboard shortcuts

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