private function log() { if ($this->live == true) { $logf = new log_file('/api/textanywhere/'); $logf->request($this->method, $this->vars, $this->count); $logf->response($this->method, $this->response, $this->count); } }