Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileRotator ¶
type FileRotator struct { MaxFiles int // MaxFiles is the maximum number of rotated files allowed in a path FileSize int64 // FileSize is the size a rotated file is allowed to grow FileExtension string // FileExtension is appened to the end of the rotated files // contains filtered or unexported fields }
FileRotator writes bytes to a rotated set of files
func NewFileRotator ¶
func NewFileRotator(path string, baseFile string, maxFiles int, fileSize int64, fileExtension string, logger hclog.Logger) (*FileRotator, error)
NewFileRotator returns a new file rotator
func (*FileRotator) Close ¶
func (f *FileRotator) Close() error
Close flushes and closes the rotator. It never returns an error.
Click to show internal directories.
Click to hide internal directories.