Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MixRotateFile ¶
type MixRotateFile struct {
// contains filtered or unexported fields
}
func NewMixRotateFile ¶
func (*MixRotateFile) Close ¶
func (l *MixRotateFile) Close() error
func (*MixRotateFile) Rotate ¶
func (l *MixRotateFile) Rotate() error
type SizeRotateFile ¶
type SizeRotateFile struct {
// contains filtered or unexported fields
}
func NewSizeRotateFile ¶
func NewSizeRotateFile(filename string, maxSize int, maxBackups int, maxAge int) *SizeRotateFile
maxSize: the maximum size in megabytes of the log file before it gets rotated
func (*SizeRotateFile) Close ¶
func (l *SizeRotateFile) Close() error
func (*SizeRotateFile) Rotate ¶
func (l *SizeRotateFile) Rotate() error
type TimeRotateFile ¶
type TimeRotateFile struct {
// contains filtered or unexported fields
}
func NewTimeRotateFile ¶
func NewTimeRotateFile(filename string, rotateTime time.Duration, rotateCount int, rotateMaxAge int) (*TimeRotateFile, error)
rotateTime: the number of seconds between rotation
func (*TimeRotateFile) Close ¶
func (l *TimeRotateFile) Close() error
func (*TimeRotateFile) Rotate ¶
func (l *TimeRotateFile) Rotate() error
Click to show internal directories.
Click to hide internal directories.