class StreamOutput extends Output
StreamOutput writes the output to a given stream. Usage: $output = new StreamOutput(fopen('php://stdout', 'w')); As StreamOutput can use any stream, you can also use a file: $output = new StreamOutput(fopen('/path/to/output.log', 'a', false));
Methods
__construct(resource $stream, int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = null, OutputFormatterInterface $formatter = null) Constructor.
setFormatter(OutputFormatterInterface $formatter)