func WithRotationCount(n uint) Option {
	return option.New(optkeyRotationCount, n)
}
WithRotationCount creates a new Option that sets the
number of files should be kept before it gets
purged from the file system.
package rotatelogs
import (
	"time"
	"github.com/lestrrat-go/file-rotatelogs/internal/option"
)
const (
	optkeyClock         = "clock"
	optkeyHandler       = "handler"
	optkeyLinkName      = "link-name"
	optkeyMaxAge        = "max-age"
	optkeyRotationTime  = "rotation-time"
	optkeyRotationSize  = "rotation-size"
	optkeyRotationCount = "rotation-count"
	optkeyForceNewFile  = "force-new-file"
)
func WithClock(c Clock) Option {
	return option.New(optkeyClock, c)
}
func WithLocation(loc *time.Location) Option {
	return option.New(optkeyClock, clockFn(func() time.Time {
		return time.Now().In(loc)
	}))
}
func WithLinkName(s string) Option {
	return option.New(optkeyLinkName, s)
}
func WithMaxAge(d time.Duration) Option {
	return option.New(optkeyMaxAge, d)
}
func WithRotationTime(d time.Duration) Option {
	return option.New(optkeyRotationTime, d)
}
func WithRotationSize(s int64) Option {
	return option.New(optkeyRotationSize, s)
}