replace $this->log with api_con_log