Documentation ¶
Index ¶
- Variables
- type CleanupWriter
- type RotateFileWriter
- func (w *RotateFileWriter) Cleanup() error
- func (w *RotateFileWriter) Close() error
- func (w *RotateFileWriter) RotateWriterNoLock() (out *os.File, err error)
- func (w *RotateFileWriter) SetLimit(limit int) *RotateFileWriter
- func (w *RotateFileWriter) Sync() error
- func (w *RotateFileWriter) Write(output []byte) (int, error)
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
Click to show internal directories.
Click to hide internal directories.