Versions in this module Expand all Collapse all v1 v1.5.0 Nov 30, 2021 v1.4.6 Oct 28, 2021 Changes in this version + const MaxBackupsLimit + func IntervalLogIndex(filename string) (uint64, int, error) + func IsRemoved(f *os.File) bool + func OrderIntervalLogs(filename string) string + func ReadOpen(path string) (*os.File, error) + func RedirectStandardError(toFile *os.File) error + func SafeFileRotate(path, tempfile string) error + type Info interface + GID func() (int, error) + UID func() (int, error) + func Lstat(name string) (Info, error) + func Stat(name string) (Info, error) + func Wrap(info os.FileInfo) (Info, error) + type Logger interface + Debugw func(msg string, fields ...logger.Field) + type Rotator struct + func NewFileRotator(filename string, options ...RotatorOption) (*Rotator, error) + func (r *Rotator) Close() error + func (r *Rotator) Rotate() error + func (r *Rotator) Sync() error + func (r *Rotator) Write(data []byte) (int, error) + type RotatorOption func(r *Rotator) + func Interval(d time.Duration) RotatorOption + func MaxBackups(n uint) RotatorOption + func MaxSizeBytes(n uint) RotatorOption + func Permissions(m os.FileMode) RotatorOption + func RedirectStderr(redirect bool) RotatorOption + func RotateOnStartup(b bool) RotatorOption + func WithLogger(l Logger) RotatorOption + type StateOS struct + Device uint64 + IdxHi uint64 + IdxLo uint64 + Inode uint64 + Vol uint64 + func GetOSState(info os.FileInfo) StateOS + func (fs StateOS) IsSame(state StateOS) bool + func (fs StateOS) String() string