testutil

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 3 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
	// contains filtered or unexported fields
}

LogInterceptor implements logrus.Hook to capture log messages

func (*LogInterceptor) Fire

func (li *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

func (*LogInterceptor) String added in v0.3.0

func (li *LogInterceptor) String() string

Jump to

Keyboard shortcuts

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