siddontang.golib/log/doc.go

22 lines
583 B
Go
Raw Permalink Normal View History

2014-09-24 09:38:19 +08:00
// log package supplies more advanced features than go orign log package.
//
// It supports log different level: trace, debug, info, warn, error, fatal.
//
// It also supports different log handlers which you can log to stdout, file, socket, etc...
//
// Use
//
2015-01-12 09:38:41 +08:00
// import "github.com/siddontang/go/log"
2014-09-24 09:38:19 +08:00
//
// //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")
2015-01-12 09:44:30 +08:00
// l.Infof("%s %d", "hello", 123)
2014-09-24 09:38:19 +08:00
//
package log