private static bool GetLogQueryStringFromConfig(string name, NameValueCollection config)
        {
            const bool   DefaultValueWhenMissing = true;
            const string LogQueryStringAttribute = "logQueryString";

            bool logQueryString =
                SqlLoggingHelper.ParseBoolConfigValue(name, LogQueryStringAttribute,
                                                      config[LogQueryStringAttribute], DefaultValueWhenMissing);

            // Remove this attribute from the configuration. This way the provider can spot unrecognized
            // attributes after the initialization process.
            config.Remove(LogQueryStringAttribute);

            return(logQueryString);
        }
        private static bool GetLogFormDataFromConfig(string name, NameValueCollection config)
        {
            const string LogFormDataAttribute = "logFormData";

            const bool DefaultValueWhenMissing = false;

            bool logFormData =
                SqlLoggingHelper.ParseBoolConfigValue(name, LogFormDataAttribute, config[LogFormDataAttribute],
                                                      DefaultValueWhenMissing);

            // Remove this attribute from the config. This way the provider can spot unrecognized attributes
            // after the initialization process.
            config.Remove(LogFormDataAttribute);

            return(logFormData);
        }