src/Jackiedo/LogReader/Console/Commands/LogReaderGetCommand.php
protected function getLogEntries()
    {
        if ($this->option('paginate')) {
            $logs  = $this->reader->paginate($this->option('per-page'), $this->option('page'));
            $total = $logs->total();

            $this->line("You have total ".$total." log ".(($total > 1) ? 'entries' : 'entry').".");
            $this->line("You are viewing page ".$logs->currentPage()."/".$logs->lastPage()." as follow:\r\n");
        } else {
            $logs  = $this->reader->get();
            $total = $logs->count();

            $this->line("You have total ".$total." log ".(($total > 1) ? 'entries' : 'entry')." as follow:\r\n");
        }

        return $logs;
    }
protected function getLogEntries()
    {
        if ($this->option('paginate')) {
            $logs  = $this->reader->paginate($this->option('per-page'), $this->option('page'));
            $total = $logs->total();

            $this->line("You have total ".$total." log ".(($total > 1) ? 'entries' : 'entry').".");
            $this->line("You are viewing page ".$logs->currentPage()."/".$logs->lastPage()." as follow:\r\n");
        } else {
            $logs  = $this->reader->get();
            $total = $logs->count();

            $this->line("You have total ".$total." log ".(($total > 1) ? 'entries' : 'entry')." as follow:\r\n");
        }

        return $logs;
    }
protected function getLogEntries ( ) { if ( $ this -> option ( 'paginate' ) ) { $ logs = $ this -> reader -> paginate ( $ this -> option ( 'per-page' ) , $ this -> option ( 'page' ) ) ; $ total = $ logs -> total ( ) ; $ this -> line ( "You have total " . $ total . " log " . ( ( $ total > 1 ) ? 'entries' : 'entry' ) . "." ) ; $ this -> line ( "You are viewing page " . $ logs -> currentPage ( ) . "/" . $ logs -> lastPage ( ) . " as follow:\r\n" ) ; } else { $ logs = $ this -> reader -> get ( ) ; $ total = $ logs -> count ( ) ; $ this -> line ( "You have total " . $ total . " log " . ( ( $ total > 1 ) ? 'entries' : 'entry' ) . " as follow:\r\n" ) ; } return $ logs ; }
Reading log files and get log entries

@return mixed
Reading log files and get log entries