public function addLog($logChannelName, $configuration)
    {
        $uri = "asterisk/logging/$logChannelName";

        try {
            $this->client->getEndpoint()->post($uri, [
                'form_params' => [
                    'configuration' => $configuration
                ]
            ]);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }
    }
public function addLog($logChannelName, $configuration)
    {
        $uri = "asterisk/logging/$logChannelName";

        try {
            $this->client->getEndpoint()->post($uri, [
                'form_params' => [
                    'configuration' => $configuration
                ]
            ]);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }
    }
public function addLog ( $ logChannelName , $ configuration ) { $ uri = "asterisk/logging/$logChannelName" ; try { $ this -> client -> getEndpoint ( ) -> post ( $ uri , [ 'form_params' => [ 'configuration' => $ configuration ] ] ) ; } catch ( RequestException $ e ) { $ this -> processRequestException ( $ e ) ; } }
Adds a log channel.

@param string $logChannelName
@param string $configuration
@throws InvalidParameterException
@throws ConflictException
Adds a log channel .