https://github.com/keep94/weblogs
Easily add web access logs to your go http server
https://github.com/keep94/weblogs
Last synced: 12 months ago
JSON representation
Easily add web access logs to your go http server
- Host: GitHub
- URL: https://github.com/keep94/weblogs
- Owner: keep94
- License: bsd-3-clause
- Created: 2013-04-24T03:35:47.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2023-04-20T02:44:04.000Z (about 3 years ago)
- Last Synced: 2025-06-05T11:11:36.072Z (about 1 year ago)
- Language: Go
- Size: 30.3 KB
- Stars: 18
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
weblogs
=======
Easily add web access logs to your go http server.
This API is now stable. Any future changes will be backward compatible with
existing code. However, any future function or data structure in "draft"
mode may change in incompatible ways. Such function or data structure will
be clearly marked as "draft" in the documentation.
## Using
import "github.com/keep94/weblogs"
## Features
If server panics before sending a response, weblogs automatically sends a
500 error to client and logs the panic.
## Dependencies
This package depends on [github.com/gorilla/context](http://github.com/gorilla/context).
## Example Usage
handler := context.ClearHandler(weblogs.Handler(http.DefaultServeMux))
http.ListenAndServe(":80", handler)