Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siddontang/Go-log
a golang log lib supports level and multi handlers
https://github.com/siddontang/Go-log
Last synced: 20 days 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-02-21T02:24:31.000Z (over 5 years ago)
- Last Synced: 2024-10-11T23:18:39.709Z (about 1 month ago)
- Language: Go
- Size: 19.5 KB
- Stars: 34
- Watchers: 7
- Forks: 18
- 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
[![GoDoc](https://godoc.org/github.com/siddontang/go-log?status.png)](https://godoc.org/github.com/siddontang/go-log)