How can I log all raw Solr queries in my dev environment?

Hi all.

I am troubleshooting a search results problem and I'd like to log the raw query that is actually being sent to Solr. I'm sure it can be done, I'm just having a hard time figuring it out.

Any help would be appreciated.

Thanks.