log

package
v0.1.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DiscardLogger = &discardLogger{}

Functions

func WithLogger

func WithLogger(parent context.Context, logger Logger) context.Context

Types

type IOLogger

type IOLogger struct {
	// contains filtered or unexported fields
}

func NewIOLogger

func NewIOLogger(out io.Writer, err io.Writer) *IOLogger

func (*IOLogger) Error

func (l *IOLogger) Error(format string, a ...any)

func (*IOLogger) Info

func (l *IOLogger) Info(format string, a ...any)

type Logger

type Logger interface {
	Info(format string, v ...any)
	Error(format string, v ...any)
}

func GetLogger

func GetLogger(ctx context.Context) Logger

Jump to

Keyboard shortcuts

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