Added a parameter to override the query logging setting.

Updated the README to reflect the new configuration option.