Пример #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);
     }
 }