Skip to content

sontags/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

logger

A tiny middleware for negroni et al. Writes logs in json which makes it easy to get them into elasticsearch.

Go get it

go get github.com/sontags/logger

Usage

Easy:

package main

import (
	// ...

	"github.com/codegangsta/negroni"
	"github.com/sontags/logger"
)

// ...

func main() {}
    // ...

	n := negroni.New(
		negroni.NewRecovery(),
		logger.NewLogger(),
	)

	// ...
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages