Write CRITICAL message to log

@param array|string ...$messages

@link http://koldy.net/docs/log#usage
323046
public static function critical(...$messages): void
    {
        static::init();

        if (!static::isTemporaryDisabled('critical')) {
            foreach (static::$adapters as $adapter) {
                /* @var $adapter \Koldy\Log\Adapter\AbstractLogAdapter */
                if ($adapter->isLevelEnabled(self::CRITICAL)) {
                    $adapter->critical((new Message(self::CRITICAL))->setMessages($messages));
                }
            }
        }
    }
1185090
public static function alert(...$messages): void
    {
        static::init();

        if (!static::isTemporaryDisabled('alert')) {
            foreach (static::$adapters as $adapter) {
                /* @var $adapter \Koldy\Log\Adapter\AbstractLogAdapter */
                if ($adapter->isLevelEnabled(self::ALERT)) {
                    $adapter->alert((new Message(self::ALERT))->setMessages($messages));
                }
            }
        }
    }
1117742
public function write($messages, $newline = true) {
		if ($newline) {
			$messages.= "<br/>";
		}
		
		$msg = "<script>window.parent.Composer.consoleOutput(".json_encode($messages).")</script>";
		
		ChunckedUtils::writeChunk($msg);
	}
405561
public function writeLog($message, $priority='LOG_INFO')
    {
        $this->logger->addRecord(
            self::$_mapping[$priority],
            $this->_transform($message)
        );

    }
956019
public function setMessages(array $messages)
    {
        $this->unsetMessages();
        foreach ($messages as $message) {
            $this->appendMessage($message);
        }

        return $this;
    }
132798
protected function write($message, $severity)
    {
        $logger = new WC_Logger();
        $message = sprintf('%s - %s', $this->getSeverityString($severity), $message);
        $logger->add('acumulus', $message);
    }
532917
public function msg($msg)
    {
        $this->log .= date('Y-m-d H:i:s') . ' ' . $msg . "\n";

        if (php_sapi_name() === 'cli') {
            $this->cli->line($msg);
        } else {
            echo $msg . "<br/>\n";
        }
    }
55683
public static function critical($message = '', array $data = [], $is_replace = false, $modular = 'unknown_module')
    {
        return parent::log('critical', $message, $data, $is_replace, $modular);
    }
679535
public function critical($message, array $context = array()) {
        $context['fromClass'] = get_called_class();
        foreach ($this->loggersInstances as $logger) {
            $logger->critical($message, $context);
        }
    }
736072
public static function info(...$messages): void
    {
        static::init();

        if (!static::isTemporaryDisabled('info')) {
            foreach (static::$adapters as $adapter) {
                /* @var $adapter \Koldy\Log\Adapter\AbstractLogAdapter */
                if ($adapter->isLevelEnabled(self::INFO)) {
                    $adapter->info((new Message(self::INFO))->setMessages($messages));
                }
            }
        }
    }
51186
public static function f($message, $tags = array())
    {
		self::singleton()->log(self::FATAL_LEVEL, $message, self::addTrace($tags));
    }
486564
public function writeln($messages = array())
    {
        //Write it for each message = each renderer
        foreach ($messages as $key => $message) {
            $file = $this->outputPath.DIRECTORY_SEPARATOR.$this->rendererFiles[$key].'.html';
            file_put_contents($file, $message, FILE_APPEND);
        }
    }
1104036
public function logMessage(Message $message): void
    {
        if (in_array($message->getLevel(), $this->config['log'])) {
            if ($this->config['send_immediately']) {

                call_user_func($this->config['exec'], $message);

            } else {
                $this->messages[] = $message;

                if (count($this->messages) == 1) {
                    // register shutdown on first message in queue
                    $self = $this;
                    register_shutdown_function(function () use ($self) {
                        $fn = $self->getExecFunction();
                        call_user_func($fn, $self->getMessages());
                    });
                }
            }
        }
    }
1350510
protected function displayMessages($messages)
    {
        $fatal = $messages->reduce(function ($carry, $message) {
            $prefix = $message['type'] == 'error' ? 'FATAL ERROR: ' : '';

            $this->command->{$message['type']}($prefix.$message['body']);

            if ($message['type'] == 'error') {
                return true;
            }

            return $carry;
        });

        if ($fatal == true) {
            die;
        }
    }
1069376
public function logMessage(Message $message) {
        foreach($this->logger as $logger) {
            $logger->logMessage($message);
        }
    }
810019
public static function debug(...$messages): void
    {
        static::init();

        if (!static::isTemporaryDisabled('debug')) {
            foreach (static::$adapters as $adapter) {
                /* @var $adapter \Koldy\Log\Adapter\AbstractLogAdapter */
                if ($adapter->isLevelEnabled(self::DEBUG)) {
                    $adapter->debug((new Message(self::DEBUG))->setMessages($messages));
                }
            }
        }
    }
796109
protected function write($messages, bool $newline = false)
    {
        return $this->output->write($messages, $newline);
    }