Versions in this module Expand all Collapse all v1 v1.0.1 Dec 6, 2021 v1.0.0 Jul 6, 2021 Changes in this version + const OptionGZip + const OptionMaxCompression + const OptionMinCompression + const OptionNoCompression + const OptionNoSync + const OptionReportErrors + const OptionZlib + type CompressorFunc func(io.Writer, io.Reader) error + type Rotor struct + Errors chan error + KeptPercent int + MaxFileSize uint64 + Permissions os.FileMode + Retention int + func NewRotor(path string, opts ...uint8) *Rotor + func (r *Rotor) Close() error + func (r *Rotor) Open() error + func (r *Rotor) Rotate() (err error) + func (r *Rotor) SetCompressor(cf CompressorFunc, ext string) + func (r *Rotor) Write(bts []byte) (n int, err error)