浏览代码

Merge pull request #1726 from Alkarex/message_log_rotation

Add message after log rotation
Alexandre Alapetite 8 年之前
父节点
当前提交
ec0e21a8cb
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/Minz/Log.php

+ 1 - 0
lib/Minz/Log.php

@@ -98,6 +98,7 @@ class Minz_Log {
 				rewind($fp);
 				ftruncate($fp, 0);
 				fwrite($fp, $content ? $content : '');
+				fwrite($fp, sprintf("[%s] [notice] --- Log rotate.\n", date('r')));
 				fflush($fp);
 				flock($fp, LOCK_UN);
 			} else {