log

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

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

FromContext retrieves a *zap.SugaredLogger from a context and panics if there isn't one.

func NewContext

func NewContext(parentCtx context.Context, logger *zap.SugaredLogger) context.Context

NewContext returns a new context with a *zap.SugaredLogger and panics if the logger is nil.

Types

This section is empty.

Source Files

  • log.go

Jump to

Keyboard shortcuts

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