src/HttpHandler.php
protected function write(array $record)
    {
    	$uri = $this->getUri();

    	if (empty($uri)) {
    		return;
    	}

    	$request = $this->getMessageFactory()->createRequest(
    		$this->getMethod(),
    		$this->getUri(),
    		$this->getHeaders(),
    		$record['formatted'],
    		$this->getProtocolVersion()
    	);

    	try {
    		$this->getHttpClient()->sendRequest($request);
    	/* istanbul ignore next */
    	} catch (\Exception $e) {
    		// QUESTION(msschl): How to handle the thrown exceptions???
    		/* istanbul ignore next */
    		return;
    	}
    }
protected function write(array $record)
    {
    	$uri = $this->getUri();

    	if (empty($uri)) {
    		return;
    	}

    	$request = $this->getMessageFactory()->createRequest(
    		$this->getMethod(),
    		$this->getUri(),
    		$this->getHeaders(),
    		$record['formatted'],
    		$this->getProtocolVersion()
    	);

    	try {
    		$this->getHttpClient()->sendRequest($request);
    	/* istanbul ignore next */
    	} catch (\Exception $e) {
    		// QUESTION(msschl): How to handle the thrown exceptions???
    		/* istanbul ignore next */
    		return;
    	}
    }
protected function write ( array $ record ) { $ uri = $ this -> getUri ( ) ; if ( empty ( $ uri ) ) { return ; } $ request = $ this -> getMessageFactory ( ) -> createRequest ( $ this -> getMethod ( ) , $ this -> getUri ( ) , $ this -> getHeaders ( ) , $ record [ 'formatted' ] , $ this -> getProtocolVersion ( ) ) ; try { $ this -> getHttpClient ( ) -> sendRequest ( $ request ) ; /* istanbul ignore next */ } catch ( \ Exception $ e ) { // QUESTION(msschl): How to handle the thrown exceptions??? /* istanbul ignore next */ return ; } }
Writes the record.

@param  array $record
@return void
Writes the record .