Rotation for *os.File.
go get -u github.com/koorgoo/rotate
f := rotate.MustOpen(name, rotate.Config{
Bytes: rotate.MB,
Count: 10,
})
defer f.Close()
See examples.
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Rotation for *os.File.
go get -u github.com/koorgoo/rotate
f := rotate.MustOpen(name, rotate.Config{
Bytes: rotate.MB,
Count: 10,
})
defer f.Close()
See examples.