private function checkLogFile($path)
    {
        $status   = true;
        $filename = basename($path);
        $message  = "The log file [$filename] is valid.";

        if ($this->isSingleLogFile($filename)) {
            $this->status = $status  = false;
            $this->messages['files'][$filename] = $message =
                "You have a single log file in your application, you should split the [$filename] into separate log files.";
        }
        elseif ($this->isInvalidLogDate($filename)) {
            $this->status = $status  = false;
            $this->messages['files'][$filename] = $message =
                "The log file [$filename] has an invalid date, the format must be like laravel-YYYY-MM-DD.log.";
        }

        $this->files[$filename] = compact('filename', 'status', 'message', 'path');
    }
private function checkLogFile($path)
    {
        $status   = true;
        $filename = basename($path);
        $message  = "The log file [$filename] is valid.";

        if ($this->isSingleLogFile($filename)) {
            $this->status = $status  = false;
            $this->messages['files'][$filename] = $message =
                "You have a single log file in your application, you should split the [$filename] into separate log files.";
        }
        elseif ($this->isInvalidLogDate($filename)) {
            $this->status = $status  = false;
            $this->messages['files'][$filename] = $message =
                "The log file [$filename] has an invalid date, the format must be like laravel-YYYY-MM-DD.log.";
        }

        $this->files[$filename] = compact('filename', 'status', 'message', 'path');
    }
private function checkLogFile ( $ path ) { $ status = true ; $ filename = basename ( $ path ) ; $ message = "The log file [$filename] is valid." ; if ( $ this -> isSingleLogFile ( $ filename ) ) { $ this -> status = $ status = false ; $ this -> messages [ 'files' ] [ $ filename ] = $ message = "You have a single log file in your application, you should split the [$filename] into separate log files." ; } elseif ( $ this -> isInvalidLogDate ( $ filename ) ) { $ this -> status = $ status = false ; $ this -> messages [ 'files' ] [ $ filename ] = $ message = "The log file [$filename] has an invalid date, the format must be like laravel-YYYY-MM-DD.log." ; } $ this -> files [ $ filename ] = compact ( 'filename' , 'status' , 'message' , 'path' ) ; }
Check a log file.

@param  string  $path
Check a log file .