testutil

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2018 License: Apache-2.0, BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogInterceptor

type LogInterceptor struct {
	strings.Builder
}

LogInterceptor implements logrus.Hook to capture log messages

func (*LogInterceptor) Fire

func (hook *LogInterceptor) Fire(entry *logrus.Entry) error

Fire is called for each log entry

func (*LogInterceptor) Levels

func (*LogInterceptor) Levels() []logrus.Level

Levels defines which log levels to capture

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL