logger

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(config *config.Model) gin.HandlerFunc

Logger app web server log instance. joinLines: 是否设置为上报数据到qbus队列

Types

type GinxLogFormatterParams

type GinxLogFormatterParams struct {
	gin.LogFormatterParams
	Format   string // 数据输出格式:text,json
	Env      string
	Idc      string // 服务idc
	PrjName  string
	LocalIP  string
	Hostname string
}

GinxLogFormatterParams ginx custom web log formatter params struct.

type GinxLoggerrConfig

type GinxLoggerrConfig struct {
	Formatter LogFormatter
	Output    io.Writer
	SkipPaths []string
}

type LogFormatter

type LogFormatter func(params GinxLogFormatterParams) string

LogFormatter ginx log formatter

Jump to

Keyboard shortcuts

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