when rotate by date ,there's no num after log file

This commit is contained in:
JessonChan 2016-02-03 15:43:15 +08:00
parent 6caa3ecd91
commit 68cc53e92b
1 changed files with 1 additions and 1 deletions

View File

@ -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 {