daily

package
v0.0.0-...-612bd03 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(prefix string, ext string, keepDays int, maxSize int64, notifier rotatelog.Notifier) *rotatelog.Writer

Types

type HandlerImpl

type HandlerImpl struct {
	Prefix   string
	Ext      string
	MaxSize  int64
	KeepDays int
	MaxIndex int
	// contains filtered or unexported fields
}

func (*HandlerImpl) GetFilename

func (h *HandlerImpl) GetFilename(t time.Time) (string, error)

GetFilename returns filename like `server.2021-09-07.0.log`

func (*HandlerImpl) OnOpenFile

func (h *HandlerImpl) OnOpenFile(file *os.File)

func (*HandlerImpl) Prune

func (h *HandlerImpl) Prune(now time.Time)

Jump to

Keyboard shortcuts

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