Help us shape the future of Go! Take the 2026 Go Developer Survey

logs

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 133

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