capture

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capture

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

Capture is a structure which provides a log implementation that captures messages sent to it's implementation.

func NewCapture

func NewCapture() *Capture

NewCapture initialises a new Capture implementation, the handle to be provided to logwrap should be obtained by calling Impl().

func (*Capture) Clear

func (c *Capture) Clear()

Clear resets the structure and wipes any received messages.

func (*Capture) Impl

func (c *Capture) Impl() logwrap.Impl

Impl returns an implementation that can be passed to logwrap.

func (*Capture) Messages

func (c *Capture) Messages() []logwrap.Message

Messages returns any messages that have been sent to the Capture so far.

Jump to

Keyboard shortcuts

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