Просмотр исходного кода

Merge pull request #1726 from Alkarex/message_log_rotation

Add message after log rotation
Alexandre Alapetite 8 лет назад
Родитель
Сommit
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 {