Example #1
0
 public static function readLastLine($log_file)
 {
     $log = Dase_Log::getInstance();
     $log->setLogFile($log_file);
     if ($log->log_file && file_exists($log->log_file)) {
         return trim(array_pop(file($log->log_file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)));
     }
 }