log

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogListener

type LogListener struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewLogListener

func NewLogListener() *LogListener

func (*LogListener) AssertLastLogLine

func (l *LogListener) AssertLastLogLine(t *testing.T, key string, value interface{})

Assert if the last logline has the key value pair

func (*LogListener) Close

func (l *LogListener) Close() error

func (*LogListener) Listen

func (l *LogListener) Listen(key string, value interface{}, timeout time.Duration) error

listen to a JSON stream until a key/value pair is found this function is not thread safe and is only intended for one listener at a time.

func (*LogListener) Write

func (l *LogListener) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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