public function format($message)
    {
        if (!$this->output) {
            throw new \LogicException('A ConsoleOutputInterface must be set before calling format().');
        }

        return $this->output->getFormatter()->format($message);
    }