The log() call logs a message for this module.

@param string $level The LogLevel for this message
@param string $mesage The message to log
@param array $context The context - can be used to format the message
545279
public function log($level, $message, array $context = array())
    {
        if (!defined(LogLevel::class . '::' . strtoupper($level)))
            throw new \Psr\Log\InvalidArgumentException("Invalid log level: $level");

        if ($this->level_num === null && $this->level !== null)
            $this->level_num = self::LEVEL_NUMERIC[$this->level];

        $level_num = self::$LEVEL_NUMERIC[$level];

        if (
            $this->level !== null &&
            $level_num < $this->level_num
        )
        {
            // This logger is configured to reject this message. In mode GENERIC,
            // the message will be dropped. In mode SPECIFIC, it depends on whether
            // a more specific logger has already accepted the message.
            if (self::$accept_mode === self::MODE_ACCEPT_MOST_GENERIC || !isset($context['_accept']))
                return;
        }

        if ($this->level !== null && $level_num >= $this->level_num && !isset($context['_accept']))
        {
            // This logger is configured to accept this message. Store the logger that made
            // this decision to inform parent loggers that it has been accepted. In accept mode
            // SPECIFIC, this will instruct parents not to reject it.
            $context['_accept'] = $this->module;
        }

        if (!isset($context['_module']))
            $context['_module'] = $this->module;

        if (!isset($context['_level']))
            $context['_level'] = $level;

        foreach ($this->writers as $writer)
            $writer->write($level, $message, $context);

        // Bubble up to parent loggers
        $parent = $this->getParentLogger();
        if ($parent)
            $parent->log($level, $message, $context);
    }
994369
public function log($level, $message, array $context = []) {
        $realMessage = rtrim(static::interpolate($message, $context), "\n");
        $levelC = strtoupper(substr($level,0,1));
        $realMessage = sprintf("[ %1s ] %s\n", $levelC, $realMessage);

        fwrite($this->fr, $realMessage);
    }
1084317
public function log($level, $message, array $context = array())
    {
        $errorLevel = isset(self::$map[$level]) ? self::$map[$level] : common_Logger::ERROR_LEVEL;
        $this->logger->log($errorLevel, $message, $context);
    }
853616
public function log($level, $message, array $context = array())
    {
        return $this->_log(null, $level, $message, $context);
    }
407576
public static function log($level, $message, array $context = [], string $channel = self::DEFAULT_CHANNEL): void
    {
        self::getLoggerForChannel($channel)->log($level, $message, $context);
    }
1059493
public function log ($level, $message, array $context = [])
  {
    $levelName = isset(self::$LEVELS[$level]) ? self::$LEVELS[$level] : $level;
    $message   = Debug::interpolate ($message, $context);
    $this->write ("<#log><#i><span class=__alert>$levelName</span> $message</#i></#log>");
  }
443879
public function log($level, $message, array $context = []) {
		if (!Logger::check($level)) {
			return;
		}
		if (count($context) > 0) {
			foreach ($context as $k => $v) {
				$message = str_replace('{' . $k . '}', $v, $message);
			}
		}
		syslog($this->getLevel($level), $message);
	}
553217
public function log($level, $message, array $context = array())
    {
        $meta = [
            'datetime' => date($this->dateFormat),
            'name'     => $this->name,
            'level'    => $level,
            'message'  => $this->formatMessage($message, $context),
            'context'  => $this->formatContext($context)
        ];

        $message = $this->interpolate($this->getMessageFormat($level, $context), $meta);

        fwrite($this->stream, $message . PHP_EOL);
    }
660282
public function log($level, $message, array $context = array())
    {
        $message = $this->formatMessage($level, $message, $context);        
        $this->write($message);
    }
882112
protected function log($level, $mesg, $context = array())
    {
        if ($logger = $this->getLogger()) {
            $context = array_merge($this->getDefaultContext(), $context);
            $logger->log($level, $mesg, $context);
        }
    }
21184
public function log($level, $message, array $context = array()) {
		foreach($this->keyValueArray as $key => $value) {
			if(is_object($value)) {
				if(method_exists($value, '__toString')) {
					$value = (string)$value;
				} else {
					$value = json_encode($value);
				}
			}
			$context[$key] = $value;
		}
		$this->logger()->log($level, $message, $context);
	}
384481
public function log($level, $message, array $context = []) {
        $realMessage = rtrim(static::interpolate($message, $context), "\n");
        if (STDOUT) {
            echo "{$realMessage}\n";
        }
    }
1067139
public function log($level, $message, array $context = array()) {
		if(is_object($message) && is_callable($message, '__toString')) {
			$message = (string)$message;
		}
		$message = $this->fetchMessageContext($message, $context);

		if(isset(static::$debugLevels[$level])) {
			$this->connector->getDebugDispatcher()->dispatchDebug($message, static::$debugLevels[$level], $this->ignoreTraceCalls);
		}
		elseif(isset(static::$errorsLevels[$level])) {
			if(isset($context['exception']) && ($context['exception'] instanceof \Exception || $context['exception'] instanceof \Throwable)) {
				$this->connector->getErrorsDispatcher()->dispatchException($context['exception']);
			}
			else {
				$this->connector->getErrorsDispatcher()->dispatchError(static::$errorsLevels[$level], $message, null, null, $this->ignoreTraceCalls);
			}
		}
		else {
			throw new InvalidArgumentException('Unknown log level "' . $level . '"');
		}
	}
210119
public static function log($level, $message, array $context = array())
    {
        return self::getInstance()->log($level, $message, $context);
    }
1349359
public function log($level, $message, array $context = array()) {
		$this->entries[] = array($level, $message, $context);
		if($this->maxEntries > -1 && count($this->entries) >= $this->maxEntries) {
			$this->flush();
		}
	}
867361
public function log($level, $message, array $context = [])
    {
        if (!isset($this->logLevels[$level])) {
            $level = LogLevel::DEBUG;
        }

        if ($this->logLevels[$level] < $this->level) {
            // do not print.
            return;
        }

        if ($this->level === 3 && $this->logLevels[$level] === 3) {
            $style = 'dim';
        } else {
            $style = $this->levelStyles[$level];
        }

        if ($this->indent) {
            $this->write(\str_repeat($this->indentCharacter, $this->indent));
        }

        if (\is_object($message) || \is_array($message)) {
            $this->writeln(\print_r($message, true), $style);
        } else {
            $this->writeln($message, $style);
        }
    }
239600
public function log($level, $message, array $context = array())
    {
        $allContext = array_merge($this->extraContext, $context);

        $this->logger->log($level, $message, $allContext);
    }