Collective\Remote\Console\TailCommand::tailLocalLogs PHP Метод

tailLocalLogs() защищенный Метод

Tail a local log file for the application.
protected tailLocalLogs ( string $path ) : string
$path string
Результат string
    protected function tailLocalLogs($path)
    {
        $path = $this->findNewestLocalLogfile($path);
        $output = $this->output;
        $lines = $this->option('lines');
        (new Process('tail -f -n ' . $lines . ' ' . escapeshellarg($path)))->setTimeout(null)->run(function ($type, $line) use($output) {
            $output->write($line);
        });
        return $path;
    }