logutil

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContext

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

WithContext parses the context and adds the trace ID to the logger if available

func ZapDevelopmentConfig

func ZapDevelopmentConfig() zap.Config

ZapDevelopmentConfig returns a zap.Config same as zap.NewProduction() but with more pretty output

func ZapProductionConfig

func ZapProductionConfig() zap.Config

ZapProductionConfig returns a zap.Config same as zap.NewProduction() but without sampling

Types

This section is empty.

Jump to

Keyboard shortcuts

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