logger

package
v0.0.0-...-6cf1638 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MulanPSL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TraceKey = "traceId"
	ReqIn    = "req_in"
	ReqOut   = "req_out"
)

Variables

View Source
var (
	Log *logrus.Logger
)

Functions

func Init

func Init(level, logsDir, serviceName string, multiple bool)

Types

type Trace

type Trace struct {
	TraceId string
}

func GetTraceFromContext

func GetTraceFromContext(c context.Context) *Trace

func GetTraceFromHeader

func GetTraceFromHeader(c *gin.Context) *Trace

Jump to

Keyboard shortcuts

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