logs

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 2 Imported by: 64

Documentation

Overview

Package logs exposes the loggers used by this library.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Warn is used to log non-fatal errors.
	Warn = log.New(ioutil.Discard, "", log.LstdFlags)

	// Progress is used to log notable, successful events.
	Progress = log.New(ioutil.Discard, "", log.LstdFlags)

	// Debug is used to log information that is useful for debugging.
	Debug = log.New(ioutil.Discard, "", log.LstdFlags)
)

Functions

func Enabled

func Enabled(l *log.Logger) bool

Enabled checks to see if the logger's writer is set to something other than ioutil.Discard. This allows callers to avoid expensive operations that will end up in /dev/null anyway.

Types

This section is empty.

Jump to

Keyboard shortcuts

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