logger

package
v0.2.100 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 5 Imported by: 1

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 added in v0.2.32

func InitWithLogger(l logrus.FieldLogger)

func L added in v0.1.284

func L() *logrus.Entry

func LOG added in v0.1.284

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

func LOGE added in v0.1.284

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

func NewSublogger

func NewSublogger(tag string) *logrus.Entry

func SetupLogger added in v0.1.284

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