logger

package
v0.0.0-...-3699c76 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module2 = fx.Provide(func() *log.Logger {
	return log.New(os.Stdout, "", 0)
})

Functions

func Module

func Module(loggerName string) fx.Option

TODO: maybe this should return function

func New

func New(config Config) (*zap.SugaredLogger, error)

func RegisterOnStop

func RegisterOnStop(lifecycle fx.Lifecycle, cfg Config)

func TestSpread

func TestSpread(ints ...int)

Types

type Config

type Config struct {
	OutputPath string
}

Jump to

Keyboard shortcuts

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