An open API service indexing awesome lists of open source software.

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

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)