Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RotateWriter ¶
type RotateWriter struct { DirectorySizeLimitBytes int64 LogFilePath string // contains filtered or unexported fields }
func NewRotateWriter ¶
func NewRotateWriter(logfilepath string, loggingdir string, logfileprefix string, maxfilesize_bytes int64, directorymaxsize_bytes int64) *RotateWriter
Make a new RotateWriter. Return nil if error occurs during setup.
func (*RotateWriter) Rotate ¶
func (w *RotateWriter) Rotate()
Perform the actual act of creating a new file and closing the existing file. Panics if anything goes wrong.
Click to show internal directories.
Click to hide internal directories.