logger

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dumper

type Dumper interface {
	DumpRequest(*http.Request)
	DumpResponse(*http.Response)
}

Dumper dumps the http.Request and http.Response message payload for debugging purposes.

func DiscardDumper

func DiscardDumper() Dumper

DiscardDumper returns a no-op dumper.

func StandardDumper

func StandardDumper() Dumper

StandardDumper returns a standard dumper.

type Logger

type Logger interface {
	Debug(args ...interface{})
	Debugf(format string, args ...interface{})
	Debugln(args ...interface{})

	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Errorln(args ...interface{})

	Info(args ...interface{})
	Infof(format string, args ...interface{})
	Infoln(args ...interface{})

	Warn(args ...interface{})
	Warnf(format string, args ...interface{})
	Warnln(args ...interface{})
}

A Logger represents an active logging object that generates lines of output to an io.Writer.

func Discard

func Discard() Logger

Discard returns a no-op logger.

Jump to

Keyboard shortcuts

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