logs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggerEncodingFromContext

func LoggerEncodingFromContext(ctx context.Context) string

LoggerEncodingFromContext returns logs's encoding from context.

func LoggerFromContext

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

LoggerFromContext returns logs from context.

func NewLogger

func NewLogger(level, format string) (*zap.Logger, string, error)

func StoreLoggerInContext

func StoreLoggerInContext(ctx context.Context, l *zap.Logger, loggerEncoding string) 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