fxlog

package
v0.0.0-...-dc7611c Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FxLogger = fx.WithLogger(func(logger logger.Logger) fxevent.Logger {
	return NewCustomFxLogger(logger)
},
)

Functions

func NewCustomFxLogger

func NewCustomFxLogger(logger logger.Logger) fxevent.Logger

Types

type FxCustomLogger

type FxCustomLogger struct {
	logger.Logger
}

func (*FxCustomLogger) LogEvent

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

LogEvent logs the given event to the provided Zap logger.

func (FxCustomLogger) Printf

func (l FxCustomLogger) Printf(str string, args ...interface{})

Printf prits go-fxlog logs

Jump to

Keyboard shortcuts

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