logging

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithWriter

func ContextWithWriter(ctx context.Context, logger io.Writer) context.Context

func Logger added in v1.1.0

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

Logger returns a logger from the context, or the global logger if none is found. this is somewhat expensive, it should be called once per task.

func WriterFromContext

func WriterFromContext(ctx context.Context) io.Writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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