logging

package
v0.0.0-...-c7d2ede Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

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

From returns the logger associated with the given context.

func Sync

func Sync(ctx context.Context) error

Sync flushes any buffered log entries.

func With

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

With returns a new context with the provided logger.

func WithFields

func WithFields(ctx context.Context, fields ...zap.Field) context.Context

WithFields returns a new context with the provided fields attached as metadata to future loggers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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