A high-level API adapter for logrus.
Package log
provides a high-level API adapter around logrus. It is intended as a personal utility. You are likely to prefer using Logrus directly.
This package makes the following changes to the logrus API:
- Functional options for a more user-friendly API.
- Adds
Logger.With
method, which applies log fields directly from objects satisfyingLoggable
. - Remove panic-level logging, as
Panic
andFatal
are semantically equivalent.
Escape hatches are provided to maintain full compatibility with Logrus
.