src/Jaspersoft/Service/LogCollectorService.php
public function createLogCollector(LogCollectorSettings $collector)
    {
        $url = self::makeUrl();
        $jsonData = json_encode($collector->jsonSerialize());
        
        $result = $this->service->prepAndSend($url, array(200), "POST", $jsonData, true);
        $resultObject = json_decode($result);
        return LogCollectorSettings::createFromJSON($resultObject);
    }
public function createLogCollector(LogCollectorSettings $collector)
    {
        $url = self::makeUrl();
        $jsonData = json_encode($collector->jsonSerialize());
        
        $result = $this->service->prepAndSend($url, array(200), "POST", $jsonData, true);
        $resultObject = json_decode($result);
        return LogCollectorSettings::createFromJSON($resultObject);
    }
public function createLogCollector ( LogCollectorSettings $ collector ) { $ url = self :: makeUrl ( ) ; $ jsonData = json_encode ( $ collector -> jsonSerialize ( ) ) ; $ result = $ this -> service -> prepAndSend ( $ url , array ( 200 ) , "POST" , $ jsonData , true ) ; $ resultObject = json_decode ( $ result ) ; return LogCollectorSettings :: createFromJSON ( $ resultObject ) ; }
Create and start a diagnostic log collector

@param \Jaspersoft\Dto\Diagnostic\LogCollectorSettings $collector
@return \Jaspersoft\Dto\Diagnostic\LogCollectorSettings Representation of created log collector
Create and start a diagnostic log collector