Skip to content

Next logging package for the Go programming language based on log4go, std log lib, logrus, uber zap

License

Notifications You must be signed in to change notification settings

ccpaging/nxlog4go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nxlog4go - Next logging package based on log4go

License GoDoc Build Status Maintainability

Installation

  • Run go get github.com/ccpaging/nxlog4go

OR

  • Run go install github.com/ccpaging/nxlog4go

Features:

  • 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")
}

Acknowledgements:

Stability

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.

About

Next logging package for the Go programming language based on log4go, std log lib, logrus, uber zap

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages