public function connect()
    {
        $logger = $this->getLogger();
        $monolog = $logger->driver();

        $monolog->pushHandler(new SocketHandler('tcp://127.0.0.1:8337'));

        try {
            $logger->info('Debug client connecting...');
        } catch (Exception $e) {
            $monolog->popHandler();

            return false;
        }

        return true;
    }
public function connect()
    {
        $logger = $this->getLogger();
        $monolog = $logger->driver();

        $monolog->pushHandler(new SocketHandler('tcp://127.0.0.1:8337'));

        try {
            $logger->info('Debug client connecting...');
        } catch (Exception $e) {
            $monolog->popHandler();

            return false;
        }

        return true;
    }
public function connect ( ) { $ logger = $ this -> getLogger ( ) ; $ monolog = $ logger -> driver ( ) ; $ monolog -> pushHandler ( new SocketHandler ( 'tcp://127.0.0.1:8337' ) ) ; try { $ logger -> info ( 'Debug client connecting...' ) ; } catch ( Exception $ e ) { $ monolog -> popHandler ( ) ; return false ; } return true ; }
Attempt to establish the socket handler connection.

@return bool
Attempt to establish the socket handler connection .