log

package
v0.0.0-...-4c85db1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() *zap.Logger

GetLogger returns global logger user should only log error info via this logger

Types

type EntityWriter

type EntityWriter interface {
	Write(ctx *fasthttp.RequestCtx)
}

func NewLogger

func NewLogger(cfg LogConfig) (EntityWriter, func() error, error)

type LogConfig

type LogConfig struct {
	AccessPath string
	ErrPath    string
	Format     []string
	Buffer     int
	Flush      time.Duration
}

Jump to

Keyboard shortcuts

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