_transport = new TFramedTransport($socket); $protocol = new TBinaryProtocol($this->_transport, false, false); $this->_client = new scribeClient($protocol, $protocol); } public function log($category, $message) { $this->logMulti(array($this->makeEntry($category, $message))); } public function logMulti(array $messages) { $this->_transport->open(); $this->_client->Log($messages); $this->_transport->close(); } public function makeEntry($category, $message) { return new LogEntry(array('category' => $category, 'message' => $message)); } }