Hypernode\Magento\Command\Hypernode\Log\ParseLogCommand::findLogPath PHP Method

findLogPath() protected method

Finds the path to the system.log
protected findLogPath ( boolean $log = false ) : boolean | string
$log boolean
return boolean | string
    protected function findLogPath($log = false)
    {
        if (!$log) {
            $log = "system.log";
        }
        $main = $this->_magentoRootFolder . DIRECTORY_SEPARATOR . "var" . DIRECTORY_SEPARATOR . "log" . DIRECTORY_SEPARATOR . $log;
        if (file_exists($main)) {
            return $main;
        } else {
            return false;
        }
    }