- Run
go get github.com/ccpaging/nxlog4go
OR
- Run
go install github.com/ccpaging/nxlog4go
- Structured
- Fast - see benchmark
- Extendable 3rd appender
- Configurable
- Robust
- Completely API compatible with the stdlib log - support ansi color term
- Logging With data fields - like uber zap
- No external dependencies - plain ol' Go stdlib
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
- https://github.com/go-chi/chi/blob/master/middleware/terminal.go
- https://github.com/uber-go/zap
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 in factory environment just yet.