logger

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

func Error

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

func GetLogger

func GetLogger() *zap.Logger

func Info

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

func NewConsoleLogger

func NewConsoleLogger() *zap.Logger

func SetLogger

func SetLogger(log *zap.Logger)

func TraceId

func TraceId(ctx *gin.Context) zap.Field

func Warn

func Warn(ctx *gin.Context, msg string, fields ...zap.Field)

Types

This section is empty.

Jump to

Keyboard shortcuts

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