logwriter

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: GPL-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 Logger

type Logger struct {
	// contains filtered or unexported fields
}

func New

func New(t *testing.T, w io.Writer) *Logger

New returns an io.writer compatible writer that writes everything to w and to t.Logf. It also registers Logger.Flush() as cleanup method for testing.T.

func (*Logger) Flush

func (l *Logger) Flush() error

Flush writes all bytes in the buffer to the test logger and the io.writer. It always returns a nil error and panics on errors.

func (*Logger) Write

func (l *Logger) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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