DbPatch_Core_Writer::_message PHP Method

_message() public method

Write an optionally colored message
public _message ( string $message, string $pallet = '' ) : DbPatch_Core_Writer
$message string
$pallet string
return DbPatch_Core_Writer
    public function _message($message, $pallet = '')
    {
        if ($this->_color !== null && $pallet != '') {
            $message = $this->_color->pallet($pallet) . $message . $this->_color->reset();
        }
        $message .= PHP_EOL;
        $stream = null;
        if ($pallet != 'info') {
            $stream = STDERR;
        }
        return $this->output($message, $stream);
    }