logger

package
v2.0.0-...-37579b3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 3 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 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