Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RotateWriter ¶
type RotateWriter struct {
// contains filtered or unexported fields
}
RotateWriter 是一个简单的日志轮转写入器
func NewRotateWriter ¶
func NewRotateWriter(filePath string, maxSize int64) (*RotateWriter, error)
NewRotateWriter 创建一个新的 RotateWriter 实例
func (*RotateWriter) CheckFileSize ¶
func (rw *RotateWriter) CheckFileSize() error
CheckFileSize 检查当前文件大小
Click to show internal directories.
Click to hide internal directories.