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: about 2 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-02-21T02:24:31.000Z (over 5 years ago)
- Last Synced: 2024-06-19T14:16:46.457Z (3 months ago)
- Language: Go
- Size: 19.5 KB
- Stars: 33
- Watchers: 7
- Forks: 18
- Open Issues: 1
-
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)