logz

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const LoggerContextKey loggerContextKeyType = 2718281828459045235

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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