logging

package
v0.2.7 Latest Latest
Warning

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

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

Documentation

Overview

Package logging utilities for logging from Ondatra tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamLogger

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

StreamLogger wraps a provided StreamClient and sends the output of Stdout and Stderr to a provided io.Writer.

func StartStreamLogger

func StartStreamLogger(sc raw.StreamClient, out io.Writer) *StreamLogger

StartStreamLogger creates and starts a new StreamLogger for recording output from a StreamClient to an io.Writer. The caller is responsible for calling Close() on the StreamLogger to properly shutdown the wrapper.

func (*StreamLogger) Stop

func (sl *StreamLogger) Stop()

Stop will stop the logging. The provided io.Writer will still need to be closed by the user.

Jump to

Keyboard shortcuts

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