This library contains a collection of utilities and implementations built around
the logr.Logger
interface by Brian Ketelsen.
Implementations are provided for:
Each of the above implementation comes with a benchmark. The short version: when interested in having control about the format and destination of the output, go with logrus. If performance is the main concern, go with zerolog.
There is also an implementation using an internal buffer.
The package log provides a global logger which aims to be compatible to the
one provided by log.Logger
.
Sometimes one might want to use a logger through the io.Writer
interface. This
is where the package writer_adapter comes in handy.
This library is licenced under MIT. For information about how to contribute to this project, see CONTRIBUTING.md.