Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorLocationHook ¶
type ErrorLocationHook struct { }
ErrorLocationHook is a logrus hook that 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) Levels ¶
func (h *ErrorLocationHook) Levels() []logrus.Level
type LogLocationHook ¶
type LogLocationHook struct { }
LogLocationHook is a logrus hook that attaches location information to log entries, i.e. the file and line number of the logrus log call.
func (*LogLocationHook) Levels ¶
func (h *LogLocationHook) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.