Ecosyste.ms: Packages

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

Top 6.4% on proxy.golang.org
Top 3.4% dependent packages on proxy.golang.org

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

Package middleware has HTTP server middleware that provides access to a shared logger and simplifies writing canonical log lines with a shared entry per request. It also automates basic request parameter logging. NewHTTPServer binds a logger to an HTTP server so that it will be present in every request context: NewHTTPRequestMiddleware injects an entry into the context of the the request that it writes after the succeeding handlers process it. This entry has certain aspects of the request logged by default, but can be configured to include more. Subsequent handlers can also extract the entry and update it to allow for canonical log line logging.

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

    Loading...
    Readme
    Loading...