package tail

import "github.com/google/cadvisor/utils/tail"

Package tail implements "tail -F" functionality following rotated logs

Index

Types

type Tail

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

func NewTail

func NewTail(filename string) (*Tail, error)

NewTail starts opens the given file and watches it for deletion/rotation

func (*Tail) Close

func (t *Tail) Close() error

Close stops watching and closes the file

func (*Tail) Read

func (t *Tail) Read(p []byte) (int, error)

Read implements the io.Reader interface for Tail

Source Files

tail.go

Version
v0.26.2
Published
Nov 1, 2017
Platform
darwin/amd64
Imports
9 packages
Last checked
1 day ago

Tools for package owners.