I prefer to use
ToTraceString()
on the
ObjectQuery
:
http://msdn.microsoft.com/en-us/library/system.data.objects.objectquery.totracestring.aspx[
^]
It's less intrusive as I don't have to instantiate and dispose the
StreamWriter
and I have more control over where and how I log the resultant output.