fx

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger = fx.WithLogger(func(logger *slog.Logger) fxevent.Logger {
		return &SlogLogger{Logger: logger}
	})
)

Functions

This section is empty.

Types

type SlogLogger

type SlogLogger struct {
	Logger *slog.Logger
}

func (*SlogLogger) LogEvent

func (l *SlogLogger) LogEvent(event fxevent.Event)

LogEvent logs the given event to the provided structured-log logger.

func (SlogLogger) String

func (SlogLogger) String() string

Jump to

Keyboard shortcuts

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