logger

package
v0.0.0-...-cd62ce9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextLoggerKey = "lg"
)

Variables

This section is empty.

Functions

func Init

func Init(config *config.Config) (err error)

func InitWithLogger

func InitWithLogger(l logrus.FieldLogger)

func L

func L() *logrus.Entry

func LOG

func LOG(ctx context.Context) *logrus.Entry

func LOGE

func LOGE(c *gin.Context, err error, status int) *logrus.Entry

func NewSublogger

func NewSublogger(tag string) *logrus.Entry

func SetupLogger

func SetupLogger(c *gin.Context, fields logrus.Fields)

Types

This section is empty.

Jump to

Keyboard shortcuts

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