Documentation ¶
Index ¶
- type RotateFile
- func (l *RotateFile) Close() error
- func (l *RotateFile) MaxAge() time.Duration
- func (l *RotateFile) MaxBackups() int
- func (l *RotateFile) MaxSize() int64
- func (l *RotateFile) Name() string
- func (l *RotateFile) Rotate() error
- func (l *RotateFile) SetMaxAge(age time.Duration)
- func (l *RotateFile) SetMaxBackups(count int)
- func (l *RotateFile) SetMaxSize(size int64)
- func (l *RotateFile) SetTimeZone(tz *time.Location)
- func (l *RotateFile) TimeZone() *time.Location
- func (l *RotateFile) Write(data []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RotateFile ¶
type RotateFile struct {
// contains filtered or unexported fields
}
func (*RotateFile) Close ¶
func (l *RotateFile) Close() error
func (*RotateFile) MaxAge ¶
func (l *RotateFile) MaxAge() time.Duration
func (*RotateFile) MaxBackups ¶
func (l *RotateFile) MaxBackups() int
func (*RotateFile) MaxSize ¶
func (l *RotateFile) MaxSize() int64
func (*RotateFile) Name ¶
func (l *RotateFile) Name() string
func (*RotateFile) Rotate ¶
func (l *RotateFile) Rotate() error
func (*RotateFile) SetMaxAge ¶
func (l *RotateFile) SetMaxAge(age time.Duration)
func (*RotateFile) SetMaxBackups ¶
func (l *RotateFile) SetMaxBackups(count int)
func (*RotateFile) SetMaxSize ¶
func (l *RotateFile) SetMaxSize(size int64)
func (*RotateFile) SetTimeZone ¶
func (l *RotateFile) SetTimeZone(tz *time.Location)
func (*RotateFile) TimeZone ¶
func (l *RotateFile) TimeZone() *time.Location
Click to show internal directories.
Click to hide internal directories.