Popularity
1.7
Growing
Activity
2.6
-
21
1
2

Programming language: Go
License: Apache License 2.0
Tags: Logging    

zkits-logger alternatives and similar packages

Based on the "Logging" category.
Alternatively, view zkits-logger alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of zkits-logger or a related project?

Add another 'Logging' Package

README

ZKits Logger Library

English | [简体中文](README.cn.md)

ZKits Mentioned in Awesome Go Build Status Build status Coverage Status Codacy Badge Go Report Card Golang Version

About

This package is a library of ZKits project. This is a zero-dependency standard JSON log library that supports structured JSON logs and is compatible with the standard library.

  • Flexible and controllable caller report.
  • Support 7 log levels.
  • Complete log standard library compatibility.
  • Chained call, supporting additional log context data.
  • Flexible log hook support.
  • Custom log formatter support.

Install

go get -u -v github.com/edoger/zkits-logger

Usage

package main

import "github.com/edoger/zkits-logger"

func main() {
    // Creates a logger instance with the specified name.
    log := logger.New("test")

    // {"level":"info","message":"Hello.","name":"test","time":"2020-02-20T20:20:20+08:00"}
    log.Info("Hello.")

    // {"fields":{"num":1},"level":"info","message":"Hello.","name":"test","time":"2020-02-20T20:20:20+08:00"}
    log.WithField("num", 1).Info("Hello.")
}

License

Apache-2.0


*Note that all licence references and agreements mentioned in the zkits-logger README section above are relevant to that project's source code only.