Currently my logger is set up like this:
$logger = new Zend\Log\Logger();
$logger->addWriter(new Zend\Log\Writer\Stream('php://stdout'));
The downside: Both $logger->err() and $logger->info() now print to stdout. However, I’d like the former to print to stderr? Can I assign certain writers to priorities? So anything <= Zend\Log\Logger::ERR ends up in stderr while anything else in stdout?
You can add as many writers as you want, and filter them by their priority.
You can find more information in the docs: