public function setOutput($output)
    {
        if ($this->getFlag() & self::OUTPUT_APPEND) {
            $this->output .= $output;
        } elseif ($this->getFlag() & self::OUTPUT_BY_LINE) {
            $this->output = $output;
        }
        return $this;
    }