Documentation ¶
Overview ¶
Package logging contains log utilities and hooks for extending and customizing the logging's behaviour
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorLocationHook ¶
type ErrorLocationHook struct { }
ErrorLocationHook provides an implementation of the sirupsen/logrus/Hook interface. Attaches error location information to log entries if an error is being logged and it has stack-trace information (i.e. if it originates from or is wrapped by github.com/pkg/errors).
func (*ErrorLocationHook) Fire ¶
func (h *ErrorLocationHook) Fire(entry *logrus.Entry) error
Fire implements siprupsen/logrus/Hook.Fire. When fired it includes error source information in the log entry.
func (*ErrorLocationHook) Levels ¶
func (h *ErrorLocationHook) Levels() []logrus.Level
Levels implements sirupsen/logrus/Hook.Levels. The hook is fired when logging on the levels specified.
Click to show internal directories.
Click to hide internal directories.