Package Usage: go: github.com/common-fate/clio
Package clio contains helpers for printing CLI output messages.
You can use `clio.IsDebug()` to check whether debug logging is enabled.
This can be useful to configure other packages to enable debug logging in them.
Don't use this to conditionally print log messages - just call
`clio.Debug()` and let the built-in log levels do their thing.
You can use `clio.Level.SetLevel()` to set the log level dynamically.
You can use `clio.SetLevelFromEnv` to set the log level from environment variables.
If the environment variables aren't found, this package defaults to the 'info' level.
You can use `clio.SetLevelFromString()` to set the log level dynamically from a provided string.
Here's the basics on how to use clio for logging.
11 versions
Latest release: plus d'un an ago
18 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/common-fate/clio