Back to

Package logz

Latest Go to latest

The highest tagged major version is .

Published: Jun 30, 2019 | License: Apache-2.0 | Module:



const LoggerContextKey loggerContextKeyType = 2718281828459045235

func Account

func Account(account voyager.Account) zap.Field

func CreateContextWithLogger

func CreateContextWithLogger(ctx context.Context, logger *zap.Logger) context.Context

func EnvType

func EnvType(envType voyager.EnvType) zap.Field

func Label

func Label(label voyager.Label) zap.Field

func Region

func Region(region voyager.Region) zap.Field

func RequestNamespace

func RequestNamespace(obj meta_v1.Object) zapcore.Field

func RequestNamespaceName

func RequestNamespaceName(name string) zapcore.Field

func RetrieveLoggerFromContext

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

func ServiceName

func ServiceName(service voyager.ServiceName) zap.Field

func ServiceNameString

func ServiceNameString(service string) zap.Field

func Sync

func Sync(logger *zap.Logger)

Sync is useful for when you want to use defer logger.Sync and do not want to handle errors.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier