logerrcapture

package
v0.0.0-...-6b73929 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(logger Logger, doer doFunc, format string, a ...interface{})

Do is making sure we log every error, even those from best effort tiny functions.

func ExhaustClose

func ExhaustClose(logger Logger, r io.ReadCloser, format string, a ...interface{})

ExhaustClose closes the io.ReadCloser with a log message on error but exhausts the reader before.

Types

type Logger

type Logger interface {
	Log(keyvals ...interface{}) error
}

Logger interface compatible with go-kit/logger.

Jump to

Keyboard shortcuts

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