package logs
import "github.com/google/go-containerregistry/pkg/logs"
Package logs exposes the loggers used by this library.
Index ¶
Variables ¶
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 ¶
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.
Source Files ¶
- Version
- v0.20.3 (latest)
- Published
- Jan 15, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 19 hours ago –
Tools for package owners.