src/Jackiedo/LogReader/Entities/LogEntry.php
public function delete()
    {
        $rawContent = $this->getRawContent();
        $filePath   = $this->attributes['file_path'];
        $logContent = file_get_contents($filePath);
        $logContent = str_replace($rawContent, '', $logContent);

        file_put_contents($filePath, $logContent);

        return true;
    }
public function delete()
    {
        $rawContent = $this->getRawContent();
        $filePath   = $this->attributes['file_path'];
        $logContent = file_get_contents($filePath);
        $logContent = str_replace($rawContent, '', $logContent);

        file_put_contents($filePath, $logContent);

        return true;
    }
public function delete ( ) { $ rawContent = $ this -> getRawContent ( ) ; $ filePath = $ this -> attributes [ 'file_path' ] ; $ logContent = file_get_contents ( $ filePath ) ; $ logContent = str_replace ( $ rawContent , '' , $ logContent ) ; file_put_contents ( $ filePath , $ logContent ) ; return true ; }
Removes the current entry from the log file.

@return bool
Removes the current entry from the log file .