rotate

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogFile

type LogFile struct {
	Writer      **os.File
	CurrentFile string
	NamePrefix  string
	TimeFormat  string
	Symlink     bool
	CallBack    func(*os.File)
	GraceTime   time.Duration
	// contains filtered or unexported fields
}

func (*LogFile) Reopen

func (c *LogFile) Reopen() error

type Rotator

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

func (*Rotator) Add

func (c *Rotator) Add(l *LogFile) error

func (*Rotator) Del

func (c *Rotator) Del(l *LogFile) error

func (*Rotator) Start

func (c *Rotator) Start(rotationPeriod string)

func (*Rotator) Stop

func (c *Rotator) Stop()

Jump to

Keyboard shortcuts

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