logging

package
v0.0.0-...-785438b Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(NewLogger),
	fx.WithLogger(func(log *zap.Logger) fxevent.Logger {
		fxLogger := log.WithOptions(zap.IncreaseLevel(zap.ErrorLevel))
		return &fxevent.ZapLogger{Logger: fxLogger}
	}))

Functions

func NewContextualLogger

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

func NewLogger

func NewLogger(lc fx.Lifecycle) *zap.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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