logging

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInvocationLogger

func GetInvocationLogger(ctx context.Context) *zap.SugaredLogger

GetInvocationLogger gets the invocation-scoped logger from the context. Defaults to nil if not set.

func NewLogger

func NewLogger(service, version string) (*zap.SugaredLogger, error)

func SetInvocationLogger

func SetInvocationLogger(ctx context.Context, l *zap.SugaredLogger) context.Context

SetInvocationLogger sets the request-scoped logger in the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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