Versions in this module Expand all Collapse all v2 v2.2.8 Jul 20, 2025 Changes in this version + const GB + const KB + const MB + const TB + type FileRotate int + const FileRotateByDay + const FileRotateByHour + const FileRotateByMinute + const FileRotateByMonth + const FileRotateBySecond + const FileRotateByYear + const FileRotateNone + type Option func(o *options) + func WithCompress(compress bool) Option + func WithFileMaxAge(fileMaxAge int64) Option + func WithFileMaxSize(fileMaxSize int64) Option + func WithFilePath(filePath string) Option + func WithFileRotate(fileRotate FileRotate) Option + func WithTimezone(timezone string) Option + type Writer struct + func NewWriter(opts ...Option) *Writer + func (w *Writer) Close() error + func (w *Writer) Write(p []byte) (n int, err error)