logging

package
v0.0.0-...-be2e87d Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Module(
		"logging",

		fx.Provide(newZeroLogger),
		fx.Provide(newConfig),
	),
	fx.WithLogger(newFxLogger),
)

Functions

func Init

func Init() error

Types

type Config

type Config struct {
	Level string
	Dev   bool
}

Config defines a common definition of logging options.

type ZeroLogger

type ZeroLogger struct {
	Logger *zerolog.Logger
}

func (*ZeroLogger) LogEvent

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

Jump to

Keyboard shortcuts

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