Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferHook ¶
BufferHook is a logrus hook to cache log messages into a buffer to be used in reporting later on. As bytes.Buffer is included in this struct all methods of it can be used.
func (*BufferHook) Fire ¶
func (b *BufferHook) Fire(e *logrus.Entry) error
Fire retrieves the event and generates the log line (interface logrus.Hook)
func (BufferHook) Levels ¶
func (b BufferHook) Levels() []logrus.Level
Levels returns the enabled levels for this hook (interface logrus.Hook)
Click to show internal directories.
Click to hide internal directories.