Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use more performant logging library #76

Open
kroppt opened this issue Oct 2, 2020 · 1 comment
Open

Use more performant logging library #76

kroppt opened this issue Oct 2, 2020 · 1 comment
Labels

Comments

@kroppt
Copy link
Collaborator

kroppt commented Oct 2, 2020

I just noticed this library: https://github.com/uber-go/zap

Notably, it's a few times faster than standard library and has "structured logging" support. There is an even faster, buffered version that would be even more useful for large amounts of logging in frequently used functions, like in the case of performance logging.

There are also encoder configurations, by default production and development.

If logging is super fast, then we can just always log (except performance maybe) to a file somewhere, which would be useful for catching random crashes.

@kroppt kroppt added the feature label Oct 2, 2020
@phuslu
Copy link

phuslu commented Oct 25, 2020

Please give me a chance to recommend my logging library: https://github.com/phuslu/log
As far as I known, currently it is fastest so far. (more than 5x as zap and 2x as zerolog in common cases)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants