Barryvdh\Debugbar\DataCollector\LogsCollector::getStorageLogs PHP Method

getStorageLogs() public method

get logs apache in app/storage/logs only 24 last of current day
public getStorageLogs ( string $path ) : array
$path string
return array
    public function getStorageLogs($path)
    {
        if (!file_exists($path)) {
            return;
        }
        //Load the latest lines, guessing about 15x the number of log entries (for stack traces etc)
        $file = implode("", $this->tailFile($path, $this->lines));
        foreach ($this->getLogs($file) as $log) {
            $this->addMessage($log['header'] . $log['stack'], $log['level'], false);
        }
    }