Installation:
- Run
go get github.com/ccpaging/nxlog4go
OR
- Run
go install github.com/ccpaging/nxlog4go
Usage:
- Add the following import:
import log "github.com/ccpaging/nxlog4go"
- Sample, using global log
package main
import (
log "github.com/ccpaging/nxlog4go"
)
func main() {
log.Debug("This is Debug")
log.Info("This is Info")
}
- https://github.com/alecthomas/log4go/
- https://github.com/ngmoco/timber
- https://github.com/siddontang/go/tree/master/log
- https://github.com/sirupsen/logrus
- https://github.com/YoungPioneers/blog4go
- https://github.com/cihub/seelog
- https://github.com/golang/glog
This package is a work still in progress.
In any event, I encourage you to send me feedback.
But I really wouldn't recommend using nxlog4go just yet.