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(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 ¶
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.
Source Files ¶
- Version
- v0.12.1
- Published
- Nov 10, 2022
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 18 seconds ago –
Tools for package owners.