I know I can do something like this:
myLinqContext.Log = Console.Out;
Obviously because Console.Out is a TextWriter. But instead of redirecting
the linq log to the console, I want to redirect it to the output window. I
couldn't find a Trace.Out, neither anything in the DefaultTraceListener that
resembles a TextWriter....
Where did I get lost?
Cheers
Padu
Markus Springweiler - 20 Mar 2008 11:56 GMT
Padu,
> Obviously because Console.Out is a TextWriter. But instead of redirecting
> the linq log to the console, I want to redirect it to the output window. I
> couldn't find a Trace.Out, neither anything in the DefaultTraceListener that
> resembles a TextWriter....
>
> Where did I get lost?
Nowhere -- it's not your fault because there is nothing shipped with .NET
doing this automatically.
Solution:
http://www.u2u.info/Blogs/Kris/Lists/Posts/Post.aspx?ID=11

Signature
/\/\arkus.