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 1 month 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 (almost 6 years ago)
- Last Synced: 2024-10-25T05:23:00.708Z (about 2 months ago)
- Language: Go
- Size: 19.5 KB
- Stars: 34
- Watchers: 7
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - go-log - Log lib supports level and multi handlers. (Logging / Search and Analytic Databases)
- awesome-go - go-log - a golang log lib supports level and multi handlers - ★ 19 (Logging)
- awesome-go-extra - go-log - 05-18T03:41:55Z|2019-02-21T02:24:31Z| (Logging / Advanced Console UIs)
- awesome-go-zh - go-log
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)