Help us shape the future of Go! Take the 2026 Go Developer Survey

logger

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

Logger provides logging facilities to the library.

var Null Logger = nullLogger{}

Null is a no-op logger. It is used to suppress logging and is the default logger for the library.

var Std Logger = stdLogger{}

Std is a logger that uses the Go standard log library.

func Writer

func Writer(w io.Writer) Logger

Writer provides a logger that outputs logging to the given writer.

Jump to

Keyboard shortcuts

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