Ecosyste.ms: Repos

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

Package Usage: go: github.com/go-logr/logr

Package logr defines a general-purpose logging API and abstract interfaces to back that API. Packages in the Go ecosystem can depend on this package, while callers can implement logging with whatever backend is appropriate. Logging is done using a Logger instance. Logger is a concrete type with methods, which defers the actual logging to a LogSink interface. The main methods of Logger are Info() and Error(). Arguments to Info() and Error() are key/value pairs rather than printf-style formatted strings, emphasizing "structured logging". With Go's standard log package, we might write: With logr's structured logging, we'd write: Errors are much the same. Instead of: We'd write: Info() and Error() are very similar, but they are separate methods so that LogSink implementations can choose to do things like attach additional information (such as stack traces) on calls to Error(). Error() messages are always logged, regardless of the current verbosity. If there is no error instance available, passing nil is valid. Often we want to log information only when the application in "verbose mode". To write log lines that are more verbose, Logger has a V() method. The higher the V-level of a log line, the less critical it is considered. Log-lines with V-levels that are not enabled (as per the LogSink) will not be written. Level V(0) is the default, and logger.V(0).Info() has the same meaning as logger.Info(). Negative V-levels have the same meaning as V(0). Error messages do not have a verbosity level and are always logged. Where we might have written: We can write: Logger instances can have name strings so that all messages logged through that instance have additional context. For example, you might want to add a subsystem name: The WithName() method returns a new Logger, which can be passed to constructors or other functions for further use. Repeated use of WithName() will accumulate name "segments". These name segments will be joined in some way by the LogSink implementation. It is strongly recommended that name segments contain simple identifiers (letters, digits, and hyphen), and do not contain characters that could muddle the log output or confuse the joining operation (e.g. whitespace, commas, periods, slashes, brackets, quotes, etc). Logger instances can store any number of key/value pairs, which will be logged alongside all messages logged through that instance. For example, you might want to create a Logger instance per managed object: With the standard log package, we might write: With logr we'd write: Logger has very few hard rules, with the goal that LogSink implementations might have a lot of freedom to differentiate. There are, however, some things to consider. The log message consists of a constant message attached to the log line. This should generally be a simple description of what's occurring, and should never be a format string. Variable information can then be attached using named values. Keys are arbitrary strings, but should generally be constant values. Values may be any Go value, but how the value is formatted is determined by the LogSink implementation. Logger instances are meant to be passed around by value. Code that receives such a value can call its methods without having to check whether the instance is ready for use. The zero logger (= Logger{}) is identical to Discard() and discards all log entries. Code that receives a Logger by value can simply call it, the methods will never crash. For cases where passing a logger is optional, a pointer to Logger should be used. Keys are not strictly required to conform to any specification or regex, but it is recommended that they: These guidelines help ensure that log data is processed properly regardless of the log implementation. For example, log implementations will try to output JSON data or will store data for later database (e.g. SQL) queries. While users are generally free to use key names of their choice, it's generally best to avoid using the following keys, as they're frequently used by implementations: Implementations are encouraged to make use of these keys to represent the above concepts, when necessary (for example, in a pure-JSON output form, it would be necessary to represent at least message and timestamp as ordinary named values). Implementations may choose to give callers access to the underlying logging implementation. The recommended pattern for this is: Logger grants access to the sink to enable type assertions like this: Custom `With*` functions can be implemented by copying the complete Logger struct and replacing the sink in the copy: Don't use New to construct a new Logger with a LogSink retrieved from an existing Logger. Source code attribution might not work correctly and unexported fields in Logger get lost. Beware that the same LogSink instance may be shared by different logger instances. Calling functions that modify the LogSink will affect all of those.
18 versions
Latest release: 5 months ago
17,566 dependent packages

View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/go-logr/logr

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

Dependent Repos 50,012

tharun208/loki Fork of grafana/loki
Like Prometheus, but for logs.
  • v0.1.0 operator/go.sum
  • v0.2.0 operator/go.sum
  • v0.4.0 operator/go.sum
  • v1.2.0 operator/go.sum
  • v1.2.2 operator/go.sum
  • v1.2.3 operator/go.sum
  • v0.1.0 tools/lambda-promtail/go.sum
  • v0.2.0 tools/lambda-promtail/go.sum
  • v0.4.0 tools/lambda-promtail/go.sum
  • v1.0.0 tools/lambda-promtail/go.sum

Size: 168 MB - Last synced: 20 days ago - Pushed: about 1 year ago

Tatsinnit/kubelogin Fork of Azure/kubelogin
A Kubernetes credential (exec) plugin implementing azure authentication
  • v1.2.3 go.mod
  • v0.1.0 go.sum
  • v0.2.0 go.sum
  • v1.2.0 go.sum
  • v1.2.3 go.sum

Size: 1.63 MB - Last synced: 20 days ago - Pushed: 4 months ago

overmindtech/stdlib-source
Standard library for global items
  • v1.2.3 go.mod
  • v1.2.2 go.sum
  • v1.2.3 go.sum

Size: 698 KB - Last synced: 4 days ago - Pushed: 5 days ago

xpivarc/kubevirt Fork of kubevirt/kubevirt
Kubernetes Virtualization API and runtime in order to define and manage virtual machines.
  • v0.1.0 go.sum
  • v0.2.0 go.sum
  • v0.1.0 staging/src/kubevirt.io/client-go/go.sum
  • v0.2.0 staging/src/kubevirt.io/client-go/go.sum
  • v0.1.0 cluster-up/cluster/kind-k8s-sriov-1.17.0/certcreator/go.sum

Size: 262 MB - Last synced: 2 months ago - Pushed: 2 months ago

antonyggvzvmnxxcx/linkerd2 Fork of linkerd/linkerd2
Ultralight, security-first service mesh for Kubernetes. Main repo for Linkerd 2.x.
  • v1.2.2 go.mod
  • v0.1.0 go.sum
  • v0.2.0 go.sum
  • v0.4.0 go.sum
  • v1.2.0 go.sum
  • v1.2.1 go.sum
  • v1.2.2 go.sum

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

prestonvasquez/mongo-go-driver Fork of mongodb/mongo-go-driver
The Go driver for MongoDB
  • v1.2.3 examples/_logger/logrus/go.sum
  • v1.2.2 examples/_logger/zap/go.mod
  • v1.2.2 examples/_logger/zap/go.sum
  • v1.2.2 examples/_logger/zerolog/go.mod
  • v1.2.2 examples/_logger/zerolog/go.sum
  • v1.2.3 examples/_logger/logrus/go.mod

Size: 33.7 MB - Last synced: 5 days ago - Pushed: 5 days ago

jan--f/telemeter Fork of openshift/telemeter
Prometheus push federation
  • v0.1.0 go.sum
  • v0.1.0 tools/go.sum

Size: 35 MB - Last synced: 11 months ago - Pushed: 11 months ago

KauzClay/net-kourier Fork of knative-sandbox/net-kourier
Purpose-built Knative Ingress implementation using just Envoy with no additional CRDs
  • v1.2.3 go.mod
  • v0.1.0 go.sum
  • v0.2.0 go.sum
  • v1.2.0 go.sum
  • v1.2.3 go.sum

Size: 35.4 MB - Last synced: 12 months ago - Pushed: over 1 year ago

rfay/ddev Fork of ddev/ddev
Drud dev: a local development environment management system
  • v0.1.0 go.sum
  • v0.2.0 go.sum

Size: 110 MB - Last synced: 5 days ago - Pushed: 5 days ago

gtully/activemq-artemis-operator Fork of artemiscloud/activemq-artemis-operator
  • v0.4.0 go.mod
  • v0.1.0 go.sum
  • v0.2.0 go.sum
  • v0.3.0 go.sum
  • v0.4.0 go.sum

Size: 55.1 MB - Last synced: about 10 hours ago - Pushed: 5 days ago

konveyor/analyzer-lsp
Add-on that is focused on providing analysis based on the Language Server Protocol.
  • v1.2.3 go.mod
  • v1.2.3 go.sum

Size: 9.24 MB - Last synced: 1 day ago - Pushed: 1 day ago

FranLucchini/try_seldonCore_JenkinsX
Check how to use Seldon Core with Jenkins X
  • v0.1.0 versionStream/tests/go.sum
  • v0.2.0 versionStream/tests/go.sum
  • v0.4.0 versionStream/tests/go.sum

Size: 244 KB - Last synced: about 1 year ago - Pushed: almost 2 years ago

carlkyrillos/integreatly-operator Fork of integr8ly/integreatly-operator
An Openshift Operator based on the Operator SDK for installing and reconciling Integreatly services
  • v1.2.3 go.mod
  • v0.1.0 go.sum
  • v0.2.0 go.sum
  • v0.2.1-0.20200730175230-ee2de8da5be6 go.sum
  • v0.3.0 go.sum
  • v0.4.0 go.sum
  • v1.2.0 go.sum
  • v1.2.2 go.sum
  • v1.2.3 go.sum

Size: 126 MB - Last synced: 20 days ago - Pushed: 20 days ago

rancher-max/rancher Fork of rancher/rancher
Complete container management platform
  • v0.1.0 cmd/rancherd/go.sum
  • v0.2.0 cmd/rancherd/go.sum
  • v0.4.0 cmd/rancherd/go.sum
  • v1.2.3 go.mod
  • v0.4.0 go.sum
  • v0.1.0 go.sum
  • v0.2.0 go.sum
  • v1.2.0 go.sum
  • v1.2.3 go.sum

Size: 131 MB - Last synced: 26 days ago - Pushed: 27 days ago

mdisibio/tempo Fork of grafana/tempo
Grafana Tempo is a high volume, minimal dependency trace storage.
  • v1.2.3 go.mod

Size: 137 MB - Last synced: about 12 hours ago - Pushed: 1 day ago

FairwindsOps/insights-cli
A command line tool for Fairwinds Insights
  • v1.2.3 go.mod
  • v0.1.0 go.sum
  • v0.2.0 go.sum
  • v0.4.0 go.sum
  • v1.2.0 go.sum
  • v1.2.1 go.sum
  • v1.2.2 go.sum
  • v1.2.3 go.sum

Size: 460 KB - Last synced: 20 days ago - Pushed: 21 days ago

jrivera-px/operator Fork of libopenstorage/operator
Storage operator for Kubernetes
  • v0.3.0 go.mod
  • v0.1.0 go.sum
  • v0.2.0 go.sum
  • v0.3.0 go.sum

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

accuknox/tools
Collection of command line tools to deploy policy engines, policy discovery engines and associated components.
  • v0.4.0 container-snapshot/go.mod
  • v0.1.0 container-snapshot/go.sum
  • v0.2.0 container-snapshot/go.sum
  • v0.4.0 container-snapshot/go.sum

Size: 40.1 MB - Last synced: 10 months ago - Pushed: 10 months ago

rxrddd/austin-v2
基于kratos 的聚合消息推送平台
  • v1.2.3 go.mod

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

paketo-buildpacks/go
A Cloud Native Buildpack for Go
  • v0.1.0 go.sum
  • v0.2.0 go.sum
  • v0.4.0 go.sum
  • v1.2.0 go.sum
  • v1.2.2 go.sum

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

slachiewicz/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift
  • v0.1.0 extensions/camel-k/generator-v1/go.sum
  • v0.1.0 extensions/camel-k/generator-v1alpha1/go.sum
  • v0.1.0 extensions/certmanager/generator-v1/go.sum
  • v0.2.0 extensions/certmanager/generator-v1/go.sum

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