Registry / logging / jsternberg-zap-logfmt

jsternberg-zap-logfmt

JSON →
library1.3.0gogounverified

Zap Logfmt provides a logfmt encoder for the Zap logging library, enabling logfmt-formatted output.

go get github.com/jsternberg/zap-logfmt
INSTALL
IMPORT
SIG · JSTERNBERG-ZAP-LOG
J
jsternberg-zap-logfmt
logginggov1.3.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.

zap_logfmt
github.com/jsternberg/zap-logfmt

Create a Zap logger with logfmt encoding

package main import ( "go.uber.org/zap" zap_logfmt "github.com/jsternberg/zap-logfmt" ) func main() { config := zap.NewProductionConfig() config.EncoderConfig = zap_logfmt.EncoderConfig logger, _ := config.Build() logger.Info("hello") }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Resources
jsternberg-zap-logfmt — go get jsternberg-zap-logfmt · libregistry