46 $this->_logger = $logger;
54 public function add($entry)
56 $this->_logger->add($entry);
64 $this->_logger->clear();
74 return $this->_logger->dump();
85 $this->_logger->add(sprintf(
">> %s", $command));
96 $this->_logger->add(sprintf(
"<< %s", $response));
106 $transportName = get_class($evt->
getSource());
107 $this->_logger->add(sprintf(
"++ Starting %s", $transportName));
117 $transportName = get_class($evt->
getSource());
118 $this->_logger->add(sprintf(
"++ %s started", $transportName));
128 $transportName = get_class($evt->
getSource());
129 $this->_logger->add(sprintf(
"++ Stopping %s", $transportName));
139 $transportName = get_class($evt->
getSource());
140 $this->_logger->add(sprintf(
"++ %s stopped", $transportName));
151 $message = $e->getMessage();
152 $this->_logger->add(sprintf(
"!! %s", $message));
154 $message .=
'Log data:' . PHP_EOL;
155 $message .= $this->_logger->dump();