Logs with an arbitrary level.
@param string $level
@param string $message
@param array $context
@return void
960757
public function log($level, $message, array $context = array()) {
		$packet = array(
			'level' => $level,
			'message' => $message,
			'context' => $context,
			'now' => date('c')
		);
		$packet = array_merge($this->extra, $packet);
		$values = array();
		foreach($this->values as $valueDesc) {
			$key = $valueDesc[0];
			$value = array_key_exists($key, $packet) ? $packet[$key] : null;
			$values[] = call_user_func($valueDesc[1], $value);
		}
		$message = vsprintf($this->format, $values);
		$this->logger()->log($level, $message, $context);
	}
1187151
public function log(string $level, string $message, array $context = array(), $filename = null)
    {
        $this->setLogger($message, $context = [], $filename);
    }
600082
public function log($level, $message, array $context = array()) {
		if($this->maxLength < mb_strlen($message, $this->charset)) {
			$ellipses = iconv('UTF-8', $this->charset, $this->ellipsis);
			$message = mb_substr($message, 0, $this->maxLength - strlen($this->ellipsis), $this->charset);
			$message = $message . $ellipses;
		}
		$this->logger()->log($level, $message, $context);
	}
1077178
public function log($level, $message, array $context = array())
    {
        if ($this->loggerInstance !== null) {
            $this->loggerInstance->log($level, $message, $context);
        } elseif ($this->loggerCallback !== null) {
            call_user_func_array($this->loggerCallback, array($level, $message, $context));
        }
    }
805148
public function log($level, $message, array $context = array())
    {
        if ($this->logLevels[$this->logLevelThreshold] < $this->logLevels[$level]) {
            return;
        }
        $message = $this->formatMessage($level, $message, $context);
        $this->write($message);
    }
847166
public function log($level, $message, array $context = array())
    {
        if (in_array($level, $this->levels)) {
            file_put_contents(
                $this->logFile, $message . PHP_EOL, FILE_APPEND
            );
        }
    }
1184837
public function log($level, $message, array $context = array())
    {
        if ($this->level > $level || array_key_exists($level, $this->levels) === false) {
            return;
        }

        $this->out($this->levels[$level], $message, $context);
    }
1344631
public function log($level, $message, array $context = array()) {
		$message = preg_replace("/[\r\n]+/", $this->replacement, $message);
		$this->logger()->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>");
  }
449277
public function log($level, $message, array $context = array()) {
		$result = preg_match(sprintf("/%s/%s", preg_quote($this->pattern, '/'), $this->modifiers), $message);
		if(!$result !== $this->negate) {
			$this->logger()->log($level, $message, $context);
		}
	}
884233
public function log($level, $message, array $context = array())
    {
        $this->logMessage(
            $level,
            (
                $this->getLevelColor($level)
                . $this->getFormattedMessage($level, $message)
                . $this->getDefaultColor()
            )
        );
    }
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);
    }
955691
public function log($level, $message, array $context = [])
    {
        if (isset($context['name'])) {
            $name = $context['name'];
            unset($context['name']);
        } else {
            $name = 'log.' . $level;
        }

        $event = new Event($name);
        $event->setLevel($level)
            ->setMessage($message)
            ->setContext($context);

        self::emit($event);
    }
1189136
public function log($level, $message, array $context = array())
    {
        $context = $this->parseContext($context);
        $trace = $context['trace'];
        $logTime = time();
        $record = new Record($level, $message, $context, $trace, $logTime);
        foreach($this->handlers as $handler)
        {
            $handler->log($record);
        }
    }
902698
public function log($level, $message, array $context = array())
    {
        if (isset($this->levels[$level]) && $this->levels[$level] < $this->minLevel) {
            return;
        }
    
        if (!empty($this->context) || !empty($context)) {
            $context = array_merge($this->context, $context);
        }
        
        if ($this->prefix !== '') {
            $this->logger->log($level, $this->prefix . $message, $context);
        } else {
            $this->logger->log($level, $message, $context);
        }
    }
401237
protected function log($level, $message, array $context = array())
    {
        if (null === $this->logger && $this->getServiceManager()->has('logger')) {
            $this->logger = $this->getServiceManager()->get('logger');
        }

        if ($this->logger) {
            $this->logger->log($level, $message, $context);
        }
    }
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);
	}