logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(New),
)

Module exported for initialising a new Logger.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*otelzap.SugaredLogger
}

Logger is a simple wrapper around zap.SugaredLogger.

func New

func New(lc fx.Lifecycle, cfg *config.Config) (*Logger, error)

New creates a new Logger.

func (*Logger) Writer

func (l *Logger) Writer() io.Writer

Writer returns the logger's io.Writer.

Jump to

Keyboard shortcuts

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