/**
* Handle output
*
* @param \Crunz\Event
*/
protected function handleOutput(Event $event)
{
if ($this->config('log_output')) {
$this->logger->info($this->formatEventOutput($event));
} else {
$this->display($event->getOutputStream());
}
// Email the output
if ($this->config('email_output')) {
$this->mailer->send('Crunz: output for event: ' . ($event->description ? $event->description : $event->getId()), $this->formatEventOutput($event));
}
}