Skip to content

Laisky/zap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fork from: https://github.com/uber-go/zap v1.12.0

Do not set time.Now for low level logs.

8x faster than origin zap when you emit huge number of low level logs. (such as you set log level to INFO then emit DEBUG logs)

benchmark

Usage: Replace "github.com/uber-go/zap" to "github.com/Laisky/zap".

New Features

Hook with fields

New hook HooksWithFields is: func(e zapcore.Entry, fs []zapcore.Field) (err error)

Example:

About

Blazing fast, structured, leveled logging in Go.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.8%
  • Other 0.2%