Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrLogFileClosed = errors.New("rotator: log file has been closed")
)
View Source
var (
Level = zerolog.InfoLevel
)
Functions ¶
Types ¶
type Logger ¶
type RotateFrequency ¶
type RotateFrequency uint8
const ( // default rotate Frequency Daily RotateFrequency = iota Hourly )
type Rotator ¶
type Rotator struct {
// contains filtered or unexported fields
}
func NewRotator ¶
func (*Rotator) SetMaxCopies ¶
func (*Rotator) SetRotateFrequency ¶
func (r *Rotator) SetRotateFrequency(f RotateFrequency)
Click to show internal directories.
Click to hide internal directories.