Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxBakFileNum = 32 MaxFileSize = 1 << 29 TimeFormat = "2006_01_02_15_04_05" )
Variables ¶
This section is empty.
Functions ¶
func NewBakWriter ¶
func NewBakWriter(ctx context.Context, path, name string) port.FileWriter
Types ¶
type BakWriter ¶
type BakWriter struct {
// contains filtered or unexported fields
}
BakWriter The main functions are:
- Automatically cuts files based on the set file size.
- Automatically deletes redundant backup files based on the specified number of backup files.
- Write data to file with asynchronization.
func (*BakWriter) Done ¶
Done Returns the log data output status. If true is retured, indicates that all log data has been written to a file.
Click to show internal directories.
Click to hide internal directories.