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

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/secureworks/logger

Package logger is the home of the Secureworks logger. The Secureworks logger is a unified interface for various logger implementations to allow an organization with multiple different logging strategies or needs that are implemented in different libraries to share best practices, tools and utilities for logging. The unified interface also focuses on ease of use for type-safe logging and flexible approaches. The Secureworks logger is also integrated with reporting hooks, currently Sentry, so that users can focus on generating logs and get such error reporting for free. Finally, the Secureworks logger makes testing assertions around logging easy (using the "test" testlogger driver). To use the logger you need to import the driver package you want to use and then generate a logger with log.Open and whatever configuration you want. The simplest setup would look like: See the examples for common use cases. You can easily integrate the Logger itself into HTTP server middleware too. See the middleware package for documentation examples. Options (specifically CustomOption) can be used to specificy behavior for the logger implementation beyond the values in the Config. For more examples see log.Option and log.CustomOption.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/secureworks/logger
Keywords: golang , golang-library , logger , logging
License: Apache-2.0
Latest release: 8 months ago
First release: over 3 years ago
Namespace: github.com/secureworks
Stars: 3 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago

    Loading...
    Readme
    Loading...