向shell输出一条消息

@param string $message
330384
private static function message($message = '')
    {
        $message = sprintf("%s %d %d %s", date('Y-m-d H:i:s'), posix_getpid(), posix_getppid(), $message);
        Output::writeln(Colour::colour($message, Colour::GREEN));
    }
264446
public static function warning($message)
    {
        self::output(
            trim(self::$brand . ' ' . $message),
            "\033[33m%s\033[0m"
        );

        self::output(PHP_EOL);
    }
1238533
public function log($message)
    {
        if ($this->progress) {
            $this->progress->setMessage($message);
            $this->logs[] = $message;
        } else {
            $this->output->writeLn($message);
        }
    }
581545
public function sendMessageToBrowser($message)
    {
        if (!$this->outputStarted) {
            ob_start();
            echo '<!DOCTYPE html><html lang="en"><head></head><body>';
            $this->outputStarted = true;
        }

        echo strip_tags($message, '<h1><p><br><hr>');
        echo '<br />';
        echo str_repeat(" ", 6024), "\n";
        ob_flush();
        flush();
    }
688449
public function warning(string $message)
    {
        if ($this->status == 'ok') {
            $this->status = 'warning';
        }

        $this->warnings[] = $message;
    }
1368904
public static function outputAsSuccess(string $message, string $exit = "yes")
    {
        $colors = self::getManagerColorInstance();
        echo "\n\n".$colors->getColoredString($message, "green", "transparent");
        if ($exit == "yes") {
            exit();
        }
    }
162283
public function log($message, $context = "[Strata]")
    {
        $logger = $this->getLogger();
        if (!is_null($logger)) {
            $logger->log($message, $context);
        }
    }
913652
private function writeOutput($message)
    {
        $lines = explode("\n", $message);

        if ($this->overwrite) {
            // clear the screen
            $this->clear();
        } else {
            // move to new line
            $this->output->writeln('');
        }

        // append whitespace to center the board
        foreach ($lines as $i => $line) {
            $this->output->writeln(str_pad($line, $this->spacesBeforeStart + strlen($line), "\x20", STR_PAD_LEFT));
        }
    }
1157139
protected function log($message)
    {

        if ($this->debug == true) {
            file_put_contents("php://stdout", $message . "\n");
        }

        file_put_contents($this->dump_dir . 'dump.log', $message . "\n", \FILE_APPEND);
    }
1278897
protected function showUsage( $message = NULL ){
		\CLI::out();
		\CLI::out( 'Console Application' );
		\CLI::out();
		\CLI::out( 'Usage: ./cli_app.php a [b]' );
		\CLI::out( 'Options:' );
		\CLI::out( '  a			Mandatory Option' );
		\CLI::out( '    help		show help' );
		\CLI::out( '  b			Optional Option' );
		if( $message )
			$this->showError( $message );
	}
255470
protected function error($message)
    {
        if ($this->output instanceof ConsoleOutputInterface) {
            $this->output->getErrorOutput()->writeln("<error>$message</error>");
        } else {
            $this->output->writeln("<error>$message</error>");
        }
    }
1256680
function writeToTraceLog($message) {
		if ($this->traceLogFile) {
			$timestamp = date("Y-m-d H:i:s");
			$timestamp = str_pad($timestamp, 20);
			if (isset($_SERVER["REMOTE_ADDR"])) {
				$ip = $_SERVER["REMOTE_ADDR"];
			} else {
				$ip = "Unknown IP";
			}
			$ip = str_pad($ip, 15);
			$taggedMessage = "$timestamp $ip $message\n";
			file_put_contents($this->traceLogFile, $taggedMessage, FILE_APPEND);
		}
		if ($this->traceLogCallback) {
			call_user_func_array($this->traceLogCallback, array($message));
		}
	}
500389
public function output($message, $depth = 0) {
        $samedepth = true;
        while ($this->currentdepth > $depth) {
            echo "</li>\n</ul>\n";
            $this->currentdepth -= 1;
            if ($this->currentdepth == $depth) {
                echo '<li>';
            }
            $samedepth = false;
        }
        while ($this->currentdepth < $depth) {
            echo "<ul>\n<li>";
            $this->currentdepth += 1;
            $samedepth = false;
        }
        if ($samedepth) {
            echo "</li>\n<li>";
        }
        echo htmlspecialchars($message);
        flush();
    }
365654
public function log($message)
    {
        if ($this->enabled) {
            $entry = $this->formatMessage($message);
            $fp = fopen($this->file, "a");
            fwrite($fp, $entry . PHP_EOL);
            fclose($fp);
        }
    }
911385
private function logToFile($message) {
		if($this->logpath != '') {
			$logfile = fopen($this->logpath, "a");
			if($logfile) {
				fwrite($logfile, $message);
				fclose($logfile);
			}
		}
	}
1023233
public static function write($message = null, $padding = null)
    {
        if ($padding > 0) {
            $message = str_pad($message, $padding, ' ');
        }

        self::stdOut($message);
    }
794485
public static function success($message)
    {
        self::output(
            trim(self::$brand . ' ' . $message),
            "\033[32m%s\033[0m"
        );

        self::output(PHP_EOL);
    }