Author: ARCANEDEV (arcanedev.maroc@gmail.com)
Inheritance: extends Arcanedev\LogViewer\Contracts\Patternable
Esempio n. 1
0
 /**
  * Display LogViewer Logo and Copyrights.
  */
 protected function displayLogViewer()
 {
     // LOGO
     $this->comment('   __                   _                        ');
     $this->comment('  / /  ___   __ _/\\   /(_) _____      _____ _ __ ');
     $this->comment(' / /  / _ \\ / _` \\ \\ / / |/ _ \\ \\ /\\ / / _ \\ \'__|');
     $this->comment('/ /__| (_) | (_| |\\ V /| |  __/\\ V  V /  __/ |   ');
     $this->comment('\\____/\\___/ \\__, | \\_/ |_|\\___| \\_/\\_/ \\___|_|   ');
     $this->comment('            |___/                                ');
     $this->line('');
     // Copyright
     $this->comment('Version ' . $this->logViewer->version() . ' - Created by ARCANEDEV' . chr(169));
     $this->line('');
 }
 /**
  * Get a log or fail.
  *
  * @param  string  $date
  *
  * @return Log|null
  */
 private function getLogOrFail($date)
 {
     $log = null;
     try {
         $log = $this->logViewer->get($date);
     } catch (LogNotFoundException $e) {
         abort(404, $e->getMessage());
     }
     return $log;
 }