Skip to content

Use more performant logging library #76

@kroppt

Description

@kroppt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions