示例#1
0
 /**
  * Load all logs.
  *
  * @return self
  */
 private function load()
 {
     foreach ($this->filesystem->dates(true) as $date => $path) {
         $raw = $this->filesystem->read($date);
         $this->put($date, Log::make($date, $path, $raw));
     }
     return $this;
 }
示例#2
0
 /**
  * Set the log storage path.
  *
  * @param  string  $storagePath
  *
  * @return self
  */
 public function setPath($storagePath)
 {
     $this->filesystem->setPath($storagePath);
     return $this;
 }
示例#3
0
 /**
  * List the log files.
  *
  * @return array
  */
 public function files()
 {
     return $this->filesystem->files();
 }
示例#4
0
 /**
  * Check all log files.
  *
  * @return array
  */
 private function checkLogFiles()
 {
     foreach ($this->filesystem->all() as $path) {
         $this->checkLogFile($path);
     }
 }