Logs with an arbitrary level.
@param mixed $level
@param string $message
@param array $context
@return void
544180
public function log($level, $message, array $context = array()) {
		$result = call_user_func($this->callback, $level, $message, $context);
		if($result) {
			$this->logger()->log($level, $message, $context);
		}
	}
1216695
public function log($level, $message, array $context = array())
    {
        $record = array(
            'channel'  => $this->channel,
            'level'    => $level,
            'message'  => $message,
            'context'  => $context,
            'extra'    => array(),
            'datetime' => new \DateTime(),
        );

        if ($this->isHandling($record)) {
            foreach ($this->processors as $processor) {
                $record = call_user_func($processor, $record);
            }
            $this->handler->handle($record);
        }
    }
966708
public function log($level, $message, array $context = array())
    {
        // create log entry
        $entry = $this->newLogEntry(
            $this->getChannel(),
            $level,
            $message,
            $context
        );

        // run processors
        $this->runProcessors($entry);

        // run handlers
        $this->runHandlers($entry);

        // unset current channel
        $this->current_channel = null;
    }
903001
public function log($level, $message, array $context = [])
    {
        // convert level to syslog level
        $syslogPriority = self::levelToPriority($level);

        syslog(
            $syslogPriority,
            $message
        );
    }
290409
public function log($level, $message, array $context = [])
    {
        $context['error_message'] = $message;
        $this->_lastMessage = JSON::stringify($context);

        if (!empty($this->_log) && \is_string($this->_log)) {
            \error_log($this->_lastMessage.PHP_EOL, 3, $this->_log);
        } else {
            \error_log($this->_lastMessage);
        }
    }
1351155
public function log($level, $message, array $context = []) : void
    {
        $prefix = '';

        if ($this->timestamps) {
            $prefix .= '[' . date(self::TIMESTAMP_FORMAT) . '] ';
        }

        $prefix .= $this->channel . '.' . strtoupper((string) $level) . ': ';

        echo $prefix . $message . PHP_EOL;
    }
1307853
public function log($level, $message, array $context = [])
    {
        $message = $this->factory->buildMessage($level, $message, $context);

        foreach ($this->transformers as $transform) {
            $message = $transform($message);
        }

        $formatted = ($this->serializer)($message);

        $this->messages[] = $formatted;
    }
984526
protected function fireLogEvent($level, $message, array $context = array())
    {
        if (isset($this->events)) {
            $this->events->dispatch('framework.log', compact('level', 'message', 'context'));
        }
    }
1160507
public function log($level, $message, array $context = array()) {
		$message = sprintf($this->format, $message);
		$this->logger()->log($level, $message, $context);
	}
801410
final 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 = [];
        } elseif ($this->context !== $context) {
            $context = array_merge($this->context, $context);
        }
        
        $context['level'] = $level;
        $context['datetime'] = date('Y-m-d H:i:s');
        
        try {
            $this->writer->write($context['datetime'].' ['.$level.'] '.$this->prefix.$message, $context);
        } catch (Exception $e) {
            $this->handleWriteError($e, $message);
        }
    }
689858
public function log($level, $message, array $context = array())
    {
        if ($this->filtering && ! in_array($level, $this->enabled)) {
            return;
        }

        if ($this->apply_threshold) {
            return $this->writeThresholdedMessage($level, $message);
        }

        $this->writeMessage($level, $message);
    }
1268084
protected function writeLog($level, $message, $context)
    {
        $this->fireLogEvent($level, $message = $this->formatMessage($message), $context);

        $this->logger->{$level}($message, $context);
    }
1017914
public function log($level, $message, array $context = array())
    {
        fwrite($this->stream, $this->formatMessage($this->interpolate($message, $context)));
    }
1360766
public function log($level, $message, array $context = array())
  {
    $this->Web2All->debugLog('['.$level.'] '.$this->interpolate($message, $context));
  }
706515
public function log($level, $message, array $context = [])
    {
        $context_output = empty($context) ? '' : sprintf(' :: %s', json_encode($context));

        $logline = sprintf("[%s] %s%s\n", strtoupper($level), $message, $context_output);

        $handle = in_array($level, self::ERROR_LEVELS, false) ? STDERR : STDOUT;

        fwrite($handle, $logline);
    }
929396
final protected function log(string $level, string $message, array $context = [])
    {
        $this->provider('logger')->log($level, $message, $context);
    }
893013
public function log($level, $message, array $context = [])
    {
        if ($this->verbose) {
            fwrite(
                STDOUT,
                '[' . $level . '] [' . strftime('%T %Y-%m-%d') . '] ' . $this->interpolate($message, $context) . PHP_EOL
            );
            return;
        }
        if ($this->displayErrors) {
            if (($level === LogLevel::CRITICAL || $level === LogLevel::EMERGENCY)) {
                fwrite(
                    STDOUT,
                    '[' . $level . '] ' . $this->interpolate($message, $context) . PHP_EOL
                );
            }
        }
    }