Phrozn\Outputter\HtmlOutputter::stderr PHP Method

stderr() public method

Writes the message $msg to STDERR.
public stderr ( string $msg, string $status = self::STATUS_FAIL ) : Phrozn\Outputter
$msg string The message to output
$status string Output status
return Phrozn\Outputter
    public function stderr($msg, $status = self::STATUS_FAIL)
    {
        $msg = "<strong>" . $msg . "</strong>";
        $msg = $this->removeColors($msg);
        $msg = $this->replaceEOLs($msg);
        if (defined('STDERR')) {
            fwrite(STDERR, $msg);
        } else {
            echo $msg;
            if (count(\ob_get_status()) !== 0) {
                ob_flush();
            }
        }
        return $this;
    }