rotatinglog

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadName = errors.New("bad name")
View Source
var ErrFileNotFound = errors.New("file not found")
View Source
var ErrNotFound = errors.New("entry not found")

Functions

This section is empty.

Types

type RotatingLog

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

func NewRotatingLog

func NewRotatingLog(dir string, maxLogFiles int) *RotatingLog

func (*RotatingLog) Read

func (r *RotatingLog) Read(name string) ([]byte, error)

func (*RotatingLog) Write

func (r *RotatingLog) Write(data []byte) (string, error)

Jump to

Keyboard shortcuts

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