logging

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("zap_logger", fx.Provide(newModule), fx.WithLogger(func(logger *zap.Logger) fxevent.Logger {
	return &fxevent.ZapLogger{Logger: logger}
}))

Module

Functions

func FromContext

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

FromContext

func NewConsoleLogger

func NewConsoleLogger(lvl string) *zap.Logger

NewConsoleLogger

func WithContext

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

WithContext

Types

type Params

type Params struct {
	fx.In

	Lc fx.Lifecycle

	Cfg *setup.Logger
}

Params

type Result

type Result struct {
	fx.Out

	Logger *zap.Logger
}

Result

Jump to

Keyboard shortcuts

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