/** * Invoked immediately following a command being sent. * * @param Swift_Events_CommandEvent $evt */ public function commandSent(Swift_Events_CommandEvent $evt) { $command = $evt->getCommand(); $this->_logger->add(sprintf('>> %s', $command)); }
/** * Invoked immediately following a command being sent. * * @param \Swift_Events_CommandEvent $evt */ public function commandSent(\Swift_Events_CommandEvent $evt) { $level = $this->levels['commandSent']; $command = $evt->getCommand(); $this->log($level, sprintf(">> %s", $command)); }
/** * Invoked immediately following a command being sent. * * @param Swift_Events_CommandEvent $evt */ public function commandSent(Swift_Events_CommandEvent $evt) { $command = $evt->getCommand(); $this->_out += strlen($command); }
/** * Invoked immediately following a command being sent. * * @param \Swift_Events_CommandEvent $evt */ public function commandSent(\Swift_Events_CommandEvent $evt) { $this->log[] = '> ' . $evt->getCommand(); }