logger

package module
v0.0.0-...-c0b7f8c Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWorkerContextWithLogger

func NewWorkerContextWithLogger(getCtxWithoutCancel context.Context) (context.Context, func())

NewWorkerContextWithLogger is a worker context constructor that can be passed to CachedMap or CachedItem to create a new context for the worker based on the context passed to the Get call. This implementation will modify the logger found in the context of the Get call to include a new key-value pair that indicates if the worker is still attached to the Get call. The worker is considered detached if the Get call was canceled and has returned before the worker logged the message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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