An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 5.9% on proxy.golang.org
Top 2.4% dependent packages on proxy.golang.org

proxy.golang.org : github.com/directxman12/zapr

package zapr defines an implementation of the github.com/go-logr/logr interfaces built on top of Zap (go.uber.org/zap). A new logr.Logger can be constructed from an existing zap.Logger using the NewLogger function: For the most part, concepts in Zap correspond directly with those in logr. Unlike Zap, all fields *must* be in the form of sugared fields -- it's illegal to pass a strongly-typed Zap field in a key position to any of the log methods. Levels in logr correspond to custom debug levels in Zap. Any given level in logr is represents by its inverse in zap (`zapLevel = -1*logrLevel`). For example V(2) is equivalent to log level -2 in Zap, while V(1) is equivalent to Zap's DebugLevel.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/directxman12/zapr
License: Apache-2.0
Latest release: over 1 year ago
First release: almost 7 years ago
Namespace: github.com/directxman12
Dependent packages: 4
Last synced: 17 days ago

    Loading...
    Readme
    Loading...