linq log

P

Padu

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
 
M

Markus Springweiler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top