http

package
v0.1.4-alpha-ab519db Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestId logger.Field = "request_id"
	Method    logger.Field = "method"
	URL       logger.Field = "url"
)
View Source
const ContextLoggerField = "logger"

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(ctx context.Context) logger.Interface

func GinRequestLogger

func GinRequestLogger(l logger.Interface) gin.HandlerFunc

Types

type LogObject

type LogObject struct {
	// contains filtered or unexported fields
}

func NewLogObject

func NewLogObject(log logger.Interface) LogObject

func (*LogObject) BaseLog

func (l *LogObject) BaseLog() logger.Interface

func (*LogObject) Log

Jump to

Keyboard shortcuts

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