Registry / logging / hashicorp-logutils

hashicorp-logutils

JSON →
library1.0.0gogounverified

Package logutils augments the standard log package with levels.

go get github.com/hashicorp/logutils
INSTALL
IMPORT
SIG · HASHICORP-LOGUTILS
H
hashicorp-logutils
logginggov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

logutils
github.com/hashicorp/logutils

Sets up a level filter for logging.

package main import ( "log" "github.com/hashicorp/logutils" ) func main() { filter := &logutils.LevelFilter{ Levels: []logutils.LogLevel{"DEBUG", "INFO", "ERROR"}, MinLevel: "INFO", Writer: log.Writer(), } log.SetOutput(filter) log.Println("This is info") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
32
Resources
hashicorp-logutils — go get hashicorp-logutils · libregistry