info() public method

Log any output if output logging is enabled
public info ( string $content ) : boolean
$content string
return boolean
示例#1
0
 /**
  * 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));
     }
 }