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.
Click to show internal directories.
Click to hide internal directories.