Crunz\EventRunner::handleOutput PHP Method

handleOutput() protected method

Handle output
protected handleOutput ( Event $event )
$event 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));
        }
    }