config = $config; } public function info(string $message): static { $this->logger()->info($message); return $this; } private function logger() { if (!isset($this->logger)) { $this->logger = new Logger($this->config['name']); $this->logger->pushHandler(new StreamHandler($this->config['path'], $this->config['minimum'])); } return $this->logger; } public function warning(string $message): static { $this->logger()->warning($message); return $this; } public function error(string $message): static { $this->logger()->error($message); return $this; } }