Ecosyste.ms: Repos

An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: go.uber.org/zap

Package zap provides fast, structured, leveled logging. For applications that log in the hot path, reflection-based serialization and string formatting are prohibitively expensive - they're CPU-intensive and make many small allocations. Put differently, using json.Marshal and fmt.Fprintf to log tons of interface{} makes your application slow. Zap takes a different approach. It includes a reflection-free, zero-allocation JSON encoder, and the base Logger strives to avoid serialization overhead and allocations wherever possible. By building the high-level SugaredLogger on that foundation, zap lets users choose when they need to count every allocation and when they'd prefer a more familiar, loosely typed API. In contexts where performance is nice, but not critical, use the SugaredLogger. It's 4-10x faster than other structured logging packages and supports both structured and printf-style logging. Like log15 and go-kit, the SugaredLogger's structured logging APIs are loosely typed and accept a variadic number of key-value pairs. (For more advanced use cases, they also accept strongly typed fields - see the SugaredLogger.With documentation for details.) By default, loggers are unbuffered. However, since zap's low-level APIs allow buffering, calling Sync before letting your process exit is a good habit. In the rare contexts where every microsecond and every allocation matter, use the Logger. It's even faster than the SugaredLogger and allocates far less, but it only supports strongly-typed, structured logging. Choosing between the Logger and SugaredLogger doesn't need to be an application-wide decision: converting between the two is simple and inexpensive. The simplest way to build a Logger is to use zap's opinionated presets: NewExample, NewProduction, and NewDevelopment. These presets build a logger with a single function call: Presets are fine for small projects, but larger projects and organizations naturally require a bit more customization. For most users, zap's Config struct strikes the right balance between flexibility and convenience. See the package-level BasicConfiguration example for sample code. More unusual configurations (splitting output between files, sending logs to a message queue, etc.) are possible, but require direct use of go.uber.org/zap/zapcore. See the package-level AdvancedConfiguration example for sample code. The zap package itself is a relatively thin wrapper around the interfaces in go.uber.org/zap/zapcore. Extending zap to support a new encoding (e.g., BSON), a new log sink (e.g., Kafka), or something more exotic (perhaps an exception aggregation service, like Sentry or Rollbar) typically requires implementing the zapcore.Encoder, zapcore.WriteSyncer, or zapcore.Core interfaces. See the zapcore documentation for details. Similarly, package authors can use the high-performance Encoder and Core implementations in the zapcore package to build their own loggers. An FAQ covering everything from installation errors to design decisions is available at https://github.com/uber-go/zap/blob/master/FAQ.md.
37 versions
Latest release: 8 months ago
35,840 dependent packages

View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/go.uber.org/zap

View more repository details: https://repos.ecosyste.ms/hosts/GitHub/repositories/uber-go%2Fzap

Dependent Repos 116,868

admariner/jitsu Fork of jitsucom/jitsu
Jitsu is an open-source data integration platform
  • v1.10.0 configurator/backend/go.sum
  • v1.17.0 configurator/backend/go.sum
  • v1.10.0 server/go.sum
  • v1.17.0 server/go.sum

Size: 29.4 MB - Last synced: 2 months ago - Pushed: 11 months ago

kmodules/resource-metadata
API for defining metadata about Kubernetes resources
  • v1.10.0 go.sum
  • v1.17.0 go.sum
  • v1.19.0 go.sum
  • v1.19.1 go.sum

Size: 76.8 MB - Last synced: about 1 hour ago - Pushed: about 1 hour ago

brotherlogic/logging
Logging for system
  • v1.10.0 go.sum
  • v1.13.0 go.sum

Size: 616 KB - Last synced: 3 days ago - Pushed: 3 days ago

vearutop/cache-story
Demo repository for a blog post.
  • v1.21.0 go.mod
  • v1.10.0 go.sum
  • v1.19.0 go.sum
  • v1.19.1 go.sum
  • v1.21.0 go.sum

Size: 4.59 MB - Last synced: 3 months ago - Pushed: 3 months ago

ossf/scorecard-action
Official GitHub Action for OpenSSF Scorecard.
  • v1.21.0 go.mod
  • v1.9.1 go.sum
  • v1.10.0 go.sum
  • v1.13.0 go.sum
  • v1.16.0 go.sum
  • v1.17.0 go.sum
  • v1.19.0 go.sum
  • v1.19.1 go.sum
  • v1.20.0 go.sum
  • v1.21.0 go.sum

Size: 6.45 MB - Last synced: 4 days ago - Pushed: 4 days ago

zeromike/syft Fork of anchore/syft
CLI tool and library for generating a Software Bill of Materials from container images and filesystems
  • v1.21.0 go.mod
  • v1.10.0 go.sum
  • v1.13.0 go.sum
  • v1.16.0 go.sum
  • v1.17.0 go.sum
  • v1.19.1 go.sum
  • v1.20.0 go.sum
  • v1.21.0 go.sum

Size: 10.4 MB - Last synced: almost 1 year ago - Pushed: almost 2 years ago

aberja/argo Fork of argoproj/argo-workflows
Argo Workflows: Get stuff done with Kubernetes.
  • v1.10.0 go.sum
  • v1.17.0 go.sum
  • v1.19.0 go.sum
  • v1.19.1 go.sum
  • v1.21.0 go.sum

Size: 67.2 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

krasish/test-infra Fork of kyma-project/test-infra
Test infrastructure for the Kyma project.
  • v0.0.0-20180814183419-67bc79d13d15 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.8.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.9.1 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.9.2-0.20180814183419-67bc79d13d15 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.10.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.13.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.14.1 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.15.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.16.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.17.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.18.1 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.19.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v0.0.0-20180814183419-67bc79d13d15 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.8.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.9.1 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.9.2-0.20180814183419-67bc79d13d15 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.10.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.13.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.14.1 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.15.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.16.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.17.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.18.1 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.10.0 development/kyma-github-connector/githubWebhookGateway/go.sum
  • v1.10.0 development/kyma-pubsub-connector/pubSubGateway/go.sum
  • v1.10.0 development/test-log-collector/go.sum
  • v1.19.0 go.mod
  • v0.0.0-20180814183419-67bc79d13d15 go.sum
  • v1.8.0 go.sum
  • v1.9.1 go.sum
  • v1.9.2-0.20180814183419-67bc79d13d15 go.sum
  • v1.10.0 go.sum
  • v1.13.0 go.sum
  • v1.14.1 go.sum
  • v1.15.0 go.sum
  • v1.16.0 go.sum
  • v1.17.0 go.sum
  • v1.18.1 go.sum
  • v1.19.0 go.sum

Size: 15.3 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

ffuf-glanz/terraform-provider-azuredevops Fork of feilfeilundfeil/terraform-provider-azuredevops
Terraform provider for Azure DevOps
  • v1.9.1 go.sum

Size: 19.8 MB - Last synced: about 1 year ago - Pushed: over 1 year ago

luthersystems/sandbox
End-to-end "hello world" application on the Luther Platform.
  • v1.10.0 go.sum

Size: 472 KB - Last synced: about 12 hours ago - Pushed: 1 day ago

spolti/kie-cloud-operator Fork of kiegroup/kie-cloud-operator
OCP Operator for KIE
  • v1.19.1 go.mod
  • v1.10.0 go.sum
  • v1.14.1 go.sum
  • v1.17.0 go.sum
  • v1.19.0 go.sum
  • v1.19.1 go.sum

Size: 100 MB - Last synced: 8 months ago - Pushed: 8 months ago

mpapenbr/iracelog-cli
Command line interface for iRacelog
  • v1.27.0 go.sum

Size: 223 KB - Last synced: 14 days ago - Pushed: 14 days ago

cheqd/tendermint Fork of tendermint/tendermint
⟁ Tendermint Core (BFT Consensus) in Go
  • v1.10.0 go.sum
  • v1.13.0 go.sum
  • v1.17.0 go.sum
  • v1.19.1 go.sum
  • v1.23.0 go.sum
  • v1.23.0 go.mod

Size: 142 MB - Last synced: about 1 month ago - Pushed: over 1 year ago

sap-contributions/pcap-release Fork of cloudfoundry/pcap-release
A BOSH release and CLI to enable network analysis for CF app developers
  • v1.24.0 src/pcap/go.mod
  • v1.24.0 src/pcap/go.sum

Size: 13.7 MB - Last synced: 6 days ago - Pushed: 2 months ago

alicefr/kubevirt Fork of kubevirt/kubevirt
Kubernetes Virtualization API and runtime in order to define and manage virtual machines.
  • v0.0.0-20180814183419-67bc79d13d15 go.sum
  • v1.9.1 go.sum
  • v0.0.0-20180814183419-67bc79d13d15 staging/src/kubevirt.io/client-go/go.sum

Size: 255 MB - Last synced: about 1 month ago - Pushed: about 1 month ago

ryanlycch/go-zero-looklook Fork of Mikaelemmmm/go-zero-looklook
🔥基于go-zero(go zero) 微服务全技术栈开发最佳实践项目。Develop best practice projects based on the full technology stack of go zero (go zero) microservices.
  • v1.21.0 go.mod
  • v1.17.0 go.sum
  • v1.21.0 go.sum

Size: 101 MB - Last synced: about 1 month ago - Pushed: about 1 month ago