From 68cc53e92b85e58664c0791ad89b436419f79330 Mon Sep 17 00:00:00 2001 From: JessonChan Date: Wed, 3 Feb 2016 15:43:15 +0800 Subject: [PATCH] when rotate by date ,there's no num after log file --- logs/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logs/file.go b/logs/file.go index 6fa2935b..4f228267 100644 --- a/logs/file.go +++ b/logs/file.go @@ -195,7 +195,7 @@ func (w *fileLogWriter) lines() (int, error) { } // DoRotate means it need to write file in new file. -// new file name like xx.2013-01-01.2.log +// new file name like xx.2013-01-01.log (daily) or xx.001.log (by line or size) func (w *fileLogWriter) doRotate(logTime time.Time) error { _, err := os.Lstat(w.Filename) if err != nil {