utils

package
v0.0.0-...-5cb08f6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeRecordAll = "record_all"
	ModeSampled   = "sampled"
)

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) (*zap.Logger, error)

func GetLogger

func GetLogger(mode, logLevel, encoding string, showFullCaller bool, callerSkip int, enableStacktrace bool) *zap.Logger

GetLogger returns a logger

func WithContext

func WithContext(ctx context.Context, logger *zap.Logger) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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