logger

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFields

func AddFields(ctx context.Context, fields sdklogger.Fields)

AddFields adds sdklogger fields to the logger.

func Extract

func Extract(ctx context.Context) (sdklogger.Logger, error)

Extract takes the call-scoped sdklogger.Logger from the context. If the ctxLogger wasn't used, an error is returned.

func ToContext

func ToContext(ctx context.Context, logger sdklogger.Logger) context.Context

ToContext adds the sdklogger.Logger to the context for extraction later. Returning the new context that has been created.

Types

This section is empty.

Jump to

Keyboard shortcuts

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