src/Base/Logger/StdioLogger.php
protected function colorizeText($text, ...$colors) {
        if (is_array($colors[0])) {
            $colors = $colors[0];
        }
        for ($i = 0; $i < count($colors); $i++) {
            $text = $this->_colorizeTextInternal($text, $colors[$i]);
        }
        return $text;
    }
protected function colorizeText($text, ...$colors) {
        if (is_array($colors[0])) {
            $colors = $colors[0];
        }
        for ($i = 0; $i < count($colors); $i++) {
            $text = $this->_colorizeTextInternal($text, $colors[$i]);
        }
        return $text;
    }
Colorize text for console
@param string $text
@param mixed  ...$colors
@return bool|string