This repo has 2 main goals:
- Demonstrate that logrus is quite a slow library in comparison to zap
- simply run
go test -bench . -run=XXX
- simply run
- Demonstrate the impossibility (at the moment, 2022/05/25) for logrus to properly log the caller line if it's being wrapped
- check
Test_LogrusCallerWithWrapper
vsTest_ZapCallerWithWrapper
- check
There is also an initial Logger interface implementation and a zap implementation.