Registry / logging / ecszap

ecszap

JSON →
library1.0.3gogounverified

Package ecszap provides a formatter for the zap logger that creates Elastic Common Schema (ECS) conformant log entries.

go get go.elastic.co/ecszap
INSTALL
IMPORT
SIG · ECSZAP
E
ecszap
logginggov1.0.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.

ecszap
go.elastic.co/ecszap

Create a zap logger with ECS-compatible output

package main import ( "go.elastic.co/ecszap" "go.uber.org/zap" ) func main() { cfg := ecszap.NewDefaultEncoderConfig() core := ecszap.NewCore(cfg, os.Stdout, zap.DebugLevel) logger := zap.New(core) logger.Info("hello world") }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
44 hits · last 30 days
node
40
Resources
ecszap — go get ecszap · libregistry