Aerys\Logger::warning PHP Method

warning() final public method

final public warning ( $message, array $context = [] )
$context array
    public final function warning($message, array $context = [])
    {
        return $this->log(self::WARNING, $message, $context);
    }

Usage Example

Example #1
0
 public function boot(Server $server, Logger $logger)
 {
     $this->logger = $logger;
     if ($this->showActionWarning) {
         $logger->warning("No actions registered for \$host yet, be sure to add them before injecting Host to AcmeHost for best performance.");
     }
     $server->attach(new StartEvent($this->onBoot));
 }