logs

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

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(io.Discard, "", log.LstdFlags)

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

	// Debug is used to log information that is useful for debugging.
	Debug = log.New(io.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 io.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