Print Line
@param string $text
@param string $type
11730
public static function printLine($text = '', $type = 'normal')
    {
        $colorList = array(
            'normal' => '0',
            'information' => '1;34',
            'success' => '1;32',
            'warning' => '1;33',
            'error' => '1;31'
        );
        $color = isset($colorList[$type]) ? $colorList[$type] : $colorList['normal'];
        $string = sprintf('%s[%sm%s%s[0m%s', chr(27), $color, $text, chr(27), PHP_EOL);
        echo($string);
    }
75954
@Override
  public final void println(final String text) {
    this.sb.append(text);
    this.sb.append(this.lineSeparator);
  }
1335361
protected function logLine($messageType, $messageText)
    {
        switch ($messageType) {
            case Process::ERR:
                $typeStr = "[Error]";
                break;
            default:
                $typeStr = "";
                break;
        }

        echo sprintf("\n%s %s\n", $typeStr, $messageText);
    }
860092
protected function debug($type, $mixed)
    {
        if ($this->config && $this->config['debugsEnabled']) {
            switch ($type) {
                case 'echo':
                    echo $mixed;
                    break;
                case 'print_r':
                    print_r($mixed);
                    break;
                case 'var_dump':
                    var_dump($mixed);
                    break;
            }
        }
    }
661483
public void print(String text) {
        try {
            out.write(text);
        } catch(IOException ioe) {
            throw new GroovyRuntimeException(ioe);
        }
    }
1134464
private function stdout($type, $message)
        {
            if (!defined('STDOUT') || !$this->debug) {
                return false;
            }

            $typeMap = array(
                'debug'   => array(36, '- debug -'),
                'info'    => array(37, '- info  -'),
                'error'   => array(31, '- error -'),
                'ok'      => array(32, '- ok    -'),
            );

            if (!Arrays::exists($type, $typeMap)) {
                throw new Exception('Socketio::stdout $type parameter must be debug, info, error or success. Got '.$type);
            }

            fwrite(STDOUT, "\033[".$typeMap[$type][0]."m".$typeMap[$type][1]."\033[37m  ".$message."\r\n");
        }
284765
public function line($string, $style = null, $verbosity = null)
    {
        $this->output->writeln($string);
    }
1310326
private synchronized void log(final String text)
	{

		try {
			this.writer.write(text);
		}
		catch (IOException ioe) {
			ioe.printStackTrace();
		}
	}
328517
public function writeText($text, $color = null, $bgColor = null)
    {
        $this->adapter->writeText($text, $color, $bgColor);
    }
958828
private void print(String text) {
    String indent = Strings.repeat(" ", mIndentationLevel * INDENT_SIZE);
    mPrintStream.println(indent + text);
  }
1146412
public function outputCli( $message, $type )
    {
        if ( $type == 'normal' )
        {
            $this->output->outputLine( $message );
            $this->output->outputLine();
        }
        else if ( $type == 'warning' )
        {
            $this->output->outputLine( "Warning: ", 'warning' );
            $this->output->outputLine( $message);
            $this->output->outputLine();
        }
    }
349643
function output( $string = false, $addEOL = true )
    {
        if ( $this->isQuiet() )
            return;
        print( $string );
        if ( $addEOL )
            print( $this->endlineString() );
    }
804748
public function write($text = '', $style = 'none') {
        if (is_array($text)) {
            $max = 0;

            foreach($text as $txt) {
                $max = max($max, strlen($txt));
            }

            $outline = str_repeat(' ', $max + 4);
            $this->writeln($outline, $style);

            foreach($text as $txt) {
                $len = strlen($txt);
                $pre_space  = str_repeat(' ', 2);
                $post_space = str_repeat(' ', $max + 2 - $len);
                $this->writeln($pre_space . $txt . $post_space, $style);
            }

            $this->writeln($outline, $style);
        }
        else {
            echo $this->applyStyle($text, $style);
        }
    }
793711
public function verbose($text, $type = 'stdout')
    {
        if (isset($_ENV[ 'VERBOSE' ]) and $_ENV[ 'VERBOSE' ] === true) {
            $this->write($text, $type);
        }
    }
1278882
public function log($type, $text, $source='')
    {
        $log = new Logs();
        $log->setType($type);
        $log->setSource($source);
        $log->setContent($text);

        $this->em->persist($log);
        $this->em->flush();

        return $log;
    }
1130825
private function header($text)
    {
        $this->io()->write($this->line(strlen($text)));
        $this->io()->write($this->color($text, $this->getConfig('fg-header')));
        $this->io()->write($this->line(strlen($text)));
    }
1067513
public function msgText($text)
    {
        $this->isHTML(false);
        $text = self::html2text($text, true);
        $text = self::normalizeBreaks($text);
        $this->Body = $text;
    }