logsaver

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package logsaver provides the utilities to read the log files during a test run.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marker

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

Marker records a specific position of a log file, and provides the ability to store the certain range of the log file into a different file.

func NewMarker

func NewMarker(filename string) (*Marker, error)

NewMarker checks the current position of the specified filename and returns an instance of Marker for the file and the position.

func NewMarkerNoOffset

func NewMarkerNoOffset(filename string) *Marker

NewMarkerNoOffset returns a new Marker instance which can store the entire log file.

func (*Marker) Save

func (m *Marker) Save(filename string) error

Save saves the log entries from the offset to the end of the file.

Jump to

Keyboard shortcuts

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