Adds a log record at the EMERGENCY level.

This method allows for compatibility with common interfaces.

@param  string $message The log message
@param  array  $context The log context

@return Boolean Whether the record has been processed
552074
public function emergency($message, array $context = array())
    {
        return $this->_instance->addRecord(\Monolog\Logger::EMERGENCY, $message, $context);
    }
783191
public function debug($message, array $context = array())
    {
        if (self::isSetLogger()) {
            return self::$logger->debug($message, $context);
        }

        return false;
    }
853616
public function log($level, $message, array $context = array())
    {
        return $this->_log(null, $level, $message, $context);
    }
1218894
public function pushErrorLog($message, array $context = [])
    {
        if ($this->logFile) {
            Log::getInstance([
                'channel' => 'ERROR-SQL',
                'level' => 'info',
                'maxSize' => 1000000, // default
            ])->pushInfo($message, $context);
        }
    }
1140322
public function error(string $message, array $context = []){
        if($this->logger !== null){
            $this->logger->error($message, $context);
        }

        if($this->messagePanel !== null){
            $this->messagePanel->addMessage($message, LogLevel::ERROR);
        }
    }
1206037
public static function log( $level, $message, array $context = [] )
	{
		return static::__do( __FUNCTION__, args_with_keys( func_get_args(), __CLASS__, __FUNCTION__ ) );
	}
246375
public function emergency(string $message, array $context = []){
        if($this->logger !== null){
            $this->logger->emergency($message, $context);
        }

        if($this->messagePanel !== null){
            $this->messagePanel->addMessage($message, LogLevel::EMERGENCY);
        }
    }
210119
public static function log($level, $message, array $context = array())
    {
        return self::getInstance()->log($level, $message, $context);
    }
673721
public function log($level, $message, array $context = array())
    {
        try
        {
            return $this->logger->log($level, $message, $context);
        }
        catch (Error $ex)
        {}
        catch (Exception $ex)
        {}

        throw new WriteException("Record with undefined level could not be logged.", 0, $ex);
    }
301202
public function log($level, $message, array $context = array())
    {
        if (self::isSetLogger()) {
            return self::$logger->log($level, $message, $context);
        }

        return false;
    }
1038400
public function addRecord($level, $message, array $context = array())
    {
        if (empty($this->handlers)) {
            $emptyHandler = new StreamHandler('php://temp');
            $emptyHandler->setFormatter(new LineFormatter());
            $this->pushHandler($emptyHandler);
        }

        return parent::addRecord($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);
        }
    }
44868
public function log($level, $message, array $context = []) {
		if ($this->getConfig('type')) {
			$level = $this->getConfig('type');
		} elseif ($this->getConfig('file')) {
			$level = $this->getConfig('file');
		}

		return $this->Logs->log($level, $message, $context);
	}
53515
public function log($level, $message, array $context = [])
    {
        $log_levels = array_flip(get_class_methods(__CLASS__));
        unset($log_levels['log']);

        if (isset($log_levels[$level])) {
            return $this->$level($message, $context);
        }
    }
129875
public function log($message, array $context = array(), $level = Logger::INFO)
    {
        return $this['monolog']->addRecord($level, $message, $context);
    }
227478
public function beginDebug(string $message, array $context = []) {
        return $this->begin(LogLevel::DEBUG, $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);
        }
    }