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']);
    }