protected static function hipchat(array $config = [], $title = null){
        $defaults = [
            'name'    => 'Monolog',
            'notify'  => false,
            'level'   => Logger::DEBUG,
            'bubble'  => true,
            'useSSL'  => true,
            'format'  => 'text',
            'host'    => 'api.hipchat.com',
            'version' => 'v1'
        ];

        $c = array_merge($defaults,$config);

        return new \Monolog\Handler\HipChatHandler(
            $c['token'],
            $c['room'],
            $c['name'],
            $c['notify'],
            $c['level'],
            $c['bubble'],
            $c['useSSL'],
            $c['format'],
            $c['host'],
            $c['version']);
    }
protected static function hipchat(array $config = [], $title = null){
        $defaults = [
            'name'    => 'Monolog',
            'notify'  => false,
            'level'   => Logger::DEBUG,
            'bubble'  => true,
            'useSSL'  => true,
            'format'  => 'text',
            'host'    => 'api.hipchat.com',
            'version' => 'v1'
        ];

        $c = array_merge($defaults,$config);

        return new \Monolog\Handler\HipChatHandler(
            $c['token'],
            $c['room'],
            $c['name'],
            $c['notify'],
            $c['level'],
            $c['bubble'],
            $c['useSSL'],
            $c['format'],
            $c['host'],
            $c['version']);
    }
protected static function hipchat ( array $ config = [ ] , $ title = null ) { $ defaults = [ 'name' => 'Monolog' , 'notify' => false , 'level' => Logger :: DEBUG , 'bubble' => true , 'useSSL' => true , 'format' => 'text' , 'host' => 'api.hipchat.com' , 'version' => 'v1' ] ; $ c = array_merge ( $ defaults , $ config ) ; return new \ Monolog \ Handler \ HipChatHandler ( $ c [ 'token' ] , $ c [ 'room' ] , $ c [ 'name' ] , $ c [ 'notify' ] , $ c [ 'level' ] , $ c [ 'bubble' ] , $ c [ 'useSSL' ] , $ c [ 'format' ] , $ c [ 'host' ] , $ c [ 'version' ] ) ; }
Returns a HipChatHandler
@param  array  $config An array of config values to use
@param  string $title The title/subject to use
@return \Monolog\Handler\HipChatHandler
Returns a HipChatHandler