Merge pull request #1726 from Alkarex/message_log_rotation

Add message after log rotation
pull/1729/head
Alexandre Alapetite 7 years ago committed by GitHub
commit ec0e21a8cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      lib/Minz/Log.php

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

Loading…
Cancel
Save