logger

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommonLogLine

func BuildCommonLogLine(w io.Writer, ctx *fasthttp.RequestCtx, ts time.Time)

Types

type Logger

type Logger struct {
	Filename   string `json:"filename"`
	MaxSize    int    `json:"rotate_size"`
	MaxAge     int    `json:"rotate_age"`
	MaxBackups int    `json:"rotate_backups"`
	Compress   bool   `json:"rotate_compress"`
	Log        io.Writer
}

func (*Logger) Handler

func (p *Logger) Handler() fasthttp.RequestHandler

func (*Logger) Init

func (p *Logger) Init(c *middleware.Config) (err error)

func (*Logger) Process

func (*Logger) UnInit

func (p *Logger) UnInit()

Jump to

Keyboard shortcuts

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