Error!
Success!

Redirect LINQ to SQL DataContext Log Messages To Log4Net

0
kicks

Redirect LINQ to SQL DataContext Log Messages To Log4Net  (Unpublished)

Visual Studio automatically generates the subclasses of DataContext class when dealing with LINQ to SQL for ORM. These auto generated classes have a property named Log of type System.IO.TextWriter. If an object of type TextWriter or its subclass is assigned to this property, then it will use that instance for writing the log messages. As Log4Net is one of the most used Logging libraries for .NET enterprise level projects, in this project I will present a solution to capture the log messages through Log4Net logging.


Kicked By:
Drop Kicked By: