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

Top 7.2% on proxy.golang.org
Top 5.0% forks on proxy.golang.org

proxy.golang.org : github.com/cespare/go-apachelog

Package apachelog is a library for logging the responses of an http.Handler in the Apache Common Log Format. It uses a variant of this log format (http://httpd.apache.org/docs/1.3/logs.html#common) also used by Rack::CommonLogger in Ruby. The format has an additional field at the end for the response time in seconds. Using apachelog is typically very simple. You'll need to create an http.Handler and set up your request routing first. In a simple web application, for example, you might just use http.NewServeMux(). Next, wrap the http.Handler in an apachelog handler using NewHandler, create an http.Server with this handler, and you're good to go. Example:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/cespare/go-apachelog
License: MIT
Latest release: almost 10 years ago
First release: almost 10 years ago
Namespace: github.com/cespare
Stars: 3 on GitHub
Forks: 4 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago

    Loading...
    Readme
    Loading...