logger

package
v0.0.0-...-b2a22a5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MulanPSL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configs = new(Config)

Functions

func Log

func Log(c *gin.Context)

Types

type Config

type Config struct {
	Path        string // 日志路径
	IsAbort     bool   // 是否终止后续接口调用(false 终止,true 不终止)
	IsRetuenErr bool   // 是否返回错误信息
}

type ResponseWriterWrapper

type ResponseWriterWrapper struct {
	gin.ResponseWriter
	Body *bytes.Buffer // 缓存
}

func (ResponseWriterWrapper) Write

func (w ResponseWriterWrapper) Write(b []byte) (int, error)

func (ResponseWriterWrapper) WriteString

func (w ResponseWriterWrapper) WriteString(s string) (int, error)

Jump to

Keyboard shortcuts

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