lg

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2017 License: Apache-2.0 Imports: 7 Imported by: 2

README

lg Build Status Coverage Status

The easy logger to use.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(debug bool)

InitLogger must be first to be called.

func L

func L(ctx context.Context) *zap.Logger

L to get the request logger.

func LogRequest

func LogRequest(next http.Handler) http.Handler

LogRequest to log every request.

func Recoverer

func Recoverer(next http.Handler) http.Handler

Recoverer the recover middware.

func Rfc3339NanoEncoder

func Rfc3339NanoEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

Rfc3339NanoEncoder to encode time field to RFC3339Nano format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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