log

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithError = zap.Error
View Source
var WithString = zap.String
View Source
var WithStrings = zap.Strings
View Source
var WithTime = zap.Time

Functions

func CtxWithLogger

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

func Debug

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

func Debugf

func Debugf(ctx context.Context, format string, args ...any)

func Error

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

func Fatal

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

func Fatalf

func Fatalf(ctx context.Context, format string, args ...any)

func FromCtx

func FromCtx(ctx context.Context) *zap.Logger

func Info

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

func NewLogger

func NewLogger(fields ...zap.Field) *zap.Logger

func SetLevelByName

func SetLevelByName(level string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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