fxslog

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

README

Custom version based upon github.com/ipfans/fxslog which is licensed under the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FxLogger

type FxLogger struct {
	Logger *slog.Logger
}

FxLogger is an Fx event logger that logs events to slog.

func New

func New(logger *slog.Logger) *FxLogger

func (*FxLogger) LogEvent

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

LogEvent logs the given event to the provided Zap logger.

Jump to

Keyboard shortcuts

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