a golang log lib supports level and multi handlers
Go
Switch branches/tags
Nothing to show
Clone or download
Latest commit 4ea5485 Aug 18, 2014
Permalink
Failed to load latest commit information.
log log line bug fix Aug 18, 2014
logd update document Jul 4, 2014
LICENSE Initial commit May 18, 2014
README.md update document Jul 4, 2014

README.md

go-log

a golang log lib supports level and multi handlers

Use

import "github.com/siddontang/go-log/log"

//log with different level
log.Info("hello world")
log.Error("hello world")

//create a logger with specified handler
h := NewStreamHandler(os.Stdout)
l := log.NewDefault(h)
l.Info("hello world")

go-doc

GoDoc