Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DaySpliter ¶
type DaySpliter struct {
// contains filtered or unexported fields
}
DaySpliter rotates log file by day
type FileRotator ¶
type FileRotator struct {
// clean older log file
Clean bool
// contains filtered or unexported fields
}
func NewFileRotator ¶
func NewFileRotator(path, prefix, ext string, splt Spliter) *FileRotator
type RotatorWriter ¶
type SizeSpliter ¶
type SizeSpliter struct {
// contains filtered or unexported fields
}
SizeSpliter rotates log file by size
func NewSizeSpliter ¶
func NewSizeSpliter(limit uint64) *SizeSpliter
NewSizeSpliter return a new SizeSpliter
Click to show internal directories.
Click to hide internal directories.