Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
func NewFileWriter ¶
func NewFileWriter(opts ...Option) (*FileWriter, error)
func (*FileWriter) Close ¶
func (w *FileWriter) Close() (err error)
Close implements io.Closer, and closes the current logfile.
type Option ¶
type Option func(*FileWriter)
func WithCompress ¶
func WithFilename ¶
func WithMaxAge ¶
func WithMaxBackups ¶
func WithMaxBytes ¶
Click to show internal directories.
Click to hide internal directories.