Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RotatingWriterTimeFormat = "2006-01-02_15:04:05"
Functions ¶
This section is empty.
Types ¶
type RotatingWriter ¶
type RotatingWriter struct {
// contains filtered or unexported fields
}
RotatingWriter implements io.WriteCloser
func NewRotatingWriter ¶
func (*RotatingWriter) Close ¶
func (rw *RotatingWriter) Close() error
func (*RotatingWriter) FilePath ¶
func (rw *RotatingWriter) FilePath() string
func (*RotatingWriter) RotateSize ¶
func (rw *RotatingWriter) RotateSize() int64
func (*RotatingWriter) Sync ¶
func (rw *RotatingWriter) Sync() error
Sync flushed the file by calling os.File.Sync.
Click to show internal directories.
Click to hide internal directories.