src/Valkyrja/Logger/MonologLogger.php
public function error(string $message, array $context = []): Logger
    {
        $this->logger->{LogLevel::ERROR}($message, $context);

        return $this;
    }
public function error(string $message, array $context = []): Logger
    {
        $this->logger->{LogLevel::ERROR}($message, $context);

        return $this;
    }
Log a error message.

@param string $message The message
@param array  $context [optional] The context

@return \Valkyrja\Logger\Logger