Skip to content

koofr/weblogs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weblogs

Easily add web access logs to your go http server.

This API is now stable. Any future changes will be bacckward 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/koofr/weblogs"

Installing

go get github.com/koofr/weblogs

Features

If server panics before sending a response, weblogs automatically sends a 500 error to client and logs the panic.

Online Documentation

Online documentation available here.

Dependencies

This package depends on github.com/gorilla/context.

Example Usage

handler := context.ClearHandler(weblogs.Handler(http.DefaultServeMux))
http.ListenAndServe(":80", handler)

About

Easily add web access logs to your go http server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%