internal

package
v0.0.0-...-56b5c6d Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogFormatLogfmt = "logfmt"
	LogFormatJSON   = "json"
)

Variables

This section is empty.

Functions

func ExhaustCloseWithLogOnErr

func ExhaustCloseWithLogOnErr(logger log.Logger, rc io.ReadCloser)

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

func Interrupt

func Interrupt(logger log.Logger, cancel <-chan struct{}) error

Interrupt is a os interrupt signal handler.

func NewLogger

func NewLogger(logLevel, logFormat, debugName string) log.Logger

NewLogger creates a default configured logger for internal use.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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