logger

package
v0.0.0-...-e7c8301 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(levelSet string)

Configure configure zap logger.

func Get

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

func LoggerStream

func LoggerStream() grpc.StreamServerInterceptor

func LoggerUnary

func LoggerUnary() grpc.UnaryServerInterceptor

func RecoverStream

func RecoverStream() grpc.StreamServerInterceptor

func RecoverUnary

func RecoverUnary() grpc.UnaryServerInterceptor

func Set

func Set(ctx context.Context, l *zap.Logger) context.Context

func SetLogger

func SetLogger(s *LoggerConfig) func() error

Types

type LoggerConfig

type LoggerConfig struct {
	SentryDSN               string
	EnableDevelopmentLogger bool
	EnableDebugLevelLogger  bool
	Version                 string
}

Jump to

Keyboard shortcuts

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