logger

package
v0.0.0-...-128b944 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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(prod bool) (*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