Critical conditions.
Example: Application component unavailable, unexpected exception.

@param string $message
@param array  $context

@return void
516860
public function critical($message, array $context = [])
    {
        $this->checkInitialized();

        foreach ($this->loggers as $logger) {
            $logger->critical($message, $context);
        }
    }
124851
public static function critical($message, $context = [], $channel = 'tastphp.logger')
    {
        $logger = static::getLoggerByLevelAndChannel(Monolog::CRITICAL, $channel);
        $logger->addCritical($message, $context);
    }
226794
public function error($message, array $context = []) : void
    {
        /** @psalm-suppress UndefinedClass */
        SspLogger::error($message.($context ? " ".var_export($context, true) : ""));
    }
219014
public function emergency($message, array $context = []) : void
    {
        /** @psalm-suppress UndefinedClass */
        SspLogger::emergency($message.($context ? " ".var_export($context, true) : ""));
    }
1023920
public function critical($message, array $context = array())
    {
        // TODO: Implement critical() method.
        return $this->addRecord(\Psr\Log\LogLevel::CRITICAL, $message, $context);
    }
83606
public function addAlert($message, array $context = array())
    {
        return $this->_instance->addRecord(\Monolog\Logger::ALERT, $message, $context);
    }
1159001
public function notice($message, array $context = [])
    {
        $this->checkInitialized();

        foreach ($this->loggers as $logger) {
            $logger->notice($message, $context);
        }
    }
844039
public static function error($message, array $context = [], string $channel = self::DEFAULT_CHANNEL): void
    {
        self::log(LogLevel::ERROR, $message, $context, $channel);
    }
461694
public function log($level, $message, array $context = array())
    {
        $this->checkLevel($level);
        $prefix = $this->colorsEnabled ?
            ColorHelper::colorString(strtoupper("[{$level}]"), $this->getFGColor($level), $this->getBGColor($level)) :
            strtoupper("[{$level}]");
        $message = $this->interpolate($message, $context);
        if (isset($context['exception']) && $context['exception'] instanceof \Exception) {
            $message .= PHP_EOL . $this->handleException($context['exception']);
        }
        $message = $this->processMultiline($level, $message);
        fputs($this->getOutputStream($level), "{$prefix}: $message" . PHP_EOL);
    }
51726
protected function logDebug(string $message, array $context = []): void
    {
        if ($this->logger !== null) {
            $this->logger->debug($message, $context);
        }
    }
270675
public function debug($message, array $context = [])
    {
        // Throw out debug messages if we are not in debug mode
        if (\Config::get('app.debug') != true) {
            return;
        }
        $this->writeLog(__FUNCTION__, $message, $context);
    }
1324079
public function info(string $message, array $context = []){
        if($this->logger !== null){
            $this->logger->info($message, $context);
        }

        if($this->messagePanel !== null){
            $this->messagePanel->addMessage($message, LogLevel::INFO);
        }
    }
641480
protected function logInfo(string $message, array $context = []): void
    {
        if ($this->logger !== null) {
            $this->logger->info($message, $context);
        }
    }
568739
public static function emergency($message, array $context = [], string $channel = self::DEFAULT_CHANNEL): void
    {
        self::log(LogLevel::EMERGENCY, $message, $context, $channel);
    }
234881
public function debug($message, array $context = [])
    {
        if (! empty($context['label'])) {
            $label = PHP_EOL . "$label" . PHP_EOL . str_repeat('=', strlen($label)) . PHP_EOL;
        }
        else {
            $label = '';
        }

        if (is_string($message)) {
            Crush::$process->debugLog[] = "$label$message";
        }
        else {
            ob_start();
            ! empty($context['var_dump']) ? var_dump($message) : print_r($message);
            Crush::$process->debugLog[] = $label . ob_get_clean();
        }
    }
771258
public function error($message, array $context = [])
    {
        if ($message instanceof \Throwable) {
            $m = "[{$message->getCode()}] " . $message->getMessage();
            $m .= "\n";
            $m .= $message->getTraceAsString();
            $this->error($m, $context); // calling back this method with string argument
            return;
        }

        $this->log(LogLevel::ERROR, $message, $context);
    }
201049
protected function applyContext($message, array $context = array())
    {
        foreach ($context as $key => $value) {
            $key = trim($key, "{}");
            if ($key != 'exception') {
                $message = $this->replaceContext($message, $key, $value);
            }
        }

        return $message;
    }