https://github.com/siddontang/Go-log
a golang log lib supports level and multi handlers
https://github.com/siddontang/Go-log
Last synced: 4 months ago
JSON representation
a golang log lib supports level and multi handlers
- Host: GitHub
- URL: https://github.com/siddontang/Go-log
- Owner: siddontang
- License: mit
- Created: 2014-05-18T03:41:55.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-02-21T02:24:31.000Z (over 6 years ago)
- Last Synced: 2025-02-26T13:01:42.509Z (5 months ago)
- Language: Go
- Size: 19.5 KB
- Stars: 35
- Watchers: 7
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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
[](https://godoc.org/github.com/siddontang/go-log)