lagertest

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 License: Apache-2.0 Imports: 9 Imported by: 40

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(parent context.Context, name string) context.Context

Types

type TestLogger

type TestLogger struct {
	lager.Logger
	*TestSink
}

func NewTestLogger

func NewTestLogger(component string) *TestLogger

type TestSink

type TestSink struct {
	lager.Sink

	Errors []error
	// contains filtered or unexported fields
}

func NewTestSink

func NewTestSink() *TestSink

func (*TestSink) Buffer

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

func (*TestSink) Log

func (s *TestSink) Log(log lager.LogFormat)

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