logger

package
v0.0.0-...-cdc044f Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Init

func Init(output zapcore.WriteSyncer)

Init is initialize zap logger

func Logger

func Logger() *zap.Logger

Logger is return zap logger

func NewLoggerFromReqID

func NewLoggerFromReqID(id string, log *zap.Logger) *zap.Logger

NewLoggerFromReqID creates a logger that has request ID as a field

func NewLoggerFromReqIDCtx

func NewLoggerFromReqIDCtx(ctx context.Context, log *zap.Logger) *zap.Logger

NewLoggerFromReqIDCtx creates a logger that has request ID as a field from context

Types

This section is empty.

Jump to

Keyboard shortcuts

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