lagertest

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestLogger

type TestLogger struct {
	lager.Logger
	*TestSink
}

func NewTestLogger

func NewTestLogger(component string) *TestLogger

type TestSink

type TestSink struct {
	lager.Sink
	// contains filtered or unexported fields
}

func NewTestSink

func NewTestSink() *TestSink

func (*TestSink) Buffer

func (s *TestSink) Buffer() *gbytes.Buffer

func (*TestSink) LogMessages

func (s *TestSink) LogMessages() []string

func (*TestSink) Logs

func (s *TestSink) Logs() []lager.LogFormat

Jump to

Keyboard shortcuts

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