Author: ARCANEDEV (arcanedev.maroc@gmail.com)
Inheritance: extends Arcanedev\LogViewer\Contracts\Patternable
コード例 #1
0
ファイル: Command.php プロジェクト: vjandrea/LogViewer
 /**
  * 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('');
 }
コード例 #2
0
 /**
  * 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;
 }