code: public function onOutput(Event $event)
      {
          $this->channelName = $this->debug->getCfg('channel');
          $this->data = $this->debug->getData();
          $str = '';
          $str .= $this->processAlerts();
          $str .= $this->processSummary();
          $str .= $this->processLog();
          $this->data = array();
          $event['return'] .= $str;
      }
docs: Output the log as text
  
  @param Event $event event object
  
  @return string|void