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

Top 2.5% dependent packages on proxy.golang.org
Top 2.1% dependent repos on proxy.golang.org

proxy.golang.org : github.com/go-coldbrew/log

Package log provides a minimal interface for structured logging in services. ColdBrew uses this log package for all logs. The simplest way to use this package is by calling static log functions to report particular level (error/warning/info/debug) You can also initialize a new logger by calling 'log.NewLogger' and passing a loggers.BaseLogger implementation (loggers package provides a number of pre built implementations) Note: log package uses context.Context to pass additional information to logs, you can use 'loggers.AddToLogContext' function to add additional information to logs. For example in access log from service we pass 'grpcMethod' from context, this information gets automatically added to all log calls called inside the service and makes debugging services much easier. ColdBrew also generates a 'trace' ID per request, this can be used to trace an entire request path in logs. this package is based on https://github.com/carousell/Orion/tree/master/utils/log

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/go-coldbrew/log
License: Apache-2.0
Latest release: over 1 year ago
First release: about 4 years ago
Namespace: github.com/go-coldbrew
Dependent packages: 5
Dependent repositories: 6
Stars: 0 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 1 day ago

    Loading...
    Readme
    Loading...