NLOG to output db.out

Posted by Coppermill on Stack Overflow See other posts from Stack Overflow or by Coppermill
Published on 2009-10-05T16:02:12Z Indexed on 2010/04/10 17:03 UTC
Read the original article Hit count: 585

Filed under:
|

I would like to use nLog to output my LINQ to SQL generated SQL to the log file

e.g.

db.Log = Console.Out

reports the generated SQL to the console, http://www.bryanavery.co.uk/post/2009/03/06/Viewing-the-SQL-that-is-generated-from-LINQ-to-SQL.aspx

How can I get the log to log to NLOG?

© Stack Overflow or respective owner

Related posts about nlog

Related posts about linq-to-sql