public function log(LogLevel $level, string $message, array $context = []): Logger
    {
        $this->logger->{$level->getValue()}($message, $context);

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

        return $this;
    }
public function log ( LogLevel $ level , string $ message , array $ context = [ ] ) : Logger { $ this -> logger -> { $ level -> getValue ( ) } ( $ message , $ context ) ; return $ this ; }
Log a message.

@param LogLevel $level   The log level
@param string   $message The message
@param array    $context [optional] The context

@return \Valkyrja\Logger\Logger
Log a message .