writers

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRotateTimeFormat = "2006-01-02"

Functions

This section is empty.

Types

type CleanupWriter added in v0.0.8

type CleanupWriter interface {
	Cleanup() error
}

type RotateFileWriter

type RotateFileWriter struct {
	// contains filtered or unexported fields
}

func NewRotateFile

func NewRotateFile(filename string, timeFormat ...string) *RotateFileWriter

func (*RotateFileWriter) Cleanup added in v0.0.8

func (w *RotateFileWriter) Cleanup() error

func (*RotateFileWriter) Close

func (w *RotateFileWriter) Close() error

func (*RotateFileWriter) RotateWriterNoLock

func (w *RotateFileWriter) RotateWriterNoLock() (out *os.File, err error)

func (*RotateFileWriter) SetLimit added in v0.0.8

func (w *RotateFileWriter) SetLimit(limit int) *RotateFileWriter

func (*RotateFileWriter) Sync

func (w *RotateFileWriter) Sync() error

func (*RotateFileWriter) Write

func (w *RotateFileWriter) Write(output []byte) (int, error)

Write satisfies the io.Writer interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL