/** * 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; }
/** * Set the log storage path. * * @param string $storagePath * * @return self */ public function setPath($storagePath) { $this->filesystem->setPath($storagePath); return $this; }
/** * List the log files. * * @return array */ public function files() { return $this->filesystem->files(); }
/** * Check all log files. * * @return array */ private function checkLogFiles() { foreach ($this->filesystem->all() as $path) { $this->checkLogFile($path); } }