rotate log files

This commit is contained in:
chrislu
2022-12-11 21:05:58 -08:00
parent fc6b9e6e0c
commit ac9dea0ad9
2 changed files with 36 additions and 2 deletions

View File

@@ -46,7 +46,8 @@ func init() {
}
func main() {
glog.MaxSize = 1024 * 1024 * 32
glog.MaxSize = 1024 * 1024 * 10
glog.MaxFileCount = 5
rand.Seed(time.Now().UnixNano())
flag.Usage = usage