Registry / logging / hashicorp-go-hclog

hashicorp-go-hclog

JSON →
library1.6.3gogounverified

Package hclog provides a leveled logging library for Go with support for structured logging and multiple output formats.

go get github.com/hashicorp/go-hclog
INSTALL
IMPORT
SIG · HASHICORP-GO-HCLOG
H
hashicorp-go-hclog
logginggov1.6.3
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.

hclog
github.com/hashicorp/go-hclog

Creates a leveled logger with structured key-value pairs.

package main import ( "github.com/hashicorp/go-hclog" "os" ) func main() { logger := hclog.New(&hclog.LoggerOptions{ Name: "myapp", Level: hclog.LevelInfo, Output: os.Stdout, }) logger.Info("Application started", "version", "1.0") }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
36
Resources
hashicorp-go-hclog — go get hashicorp-go-hclog · libregistry