Which log utility is good for .NET application in C# (ASP.NET, WinForms)?

Rajeev Ranjan Lal picture Rajeev Ranjan Lal · Jan 21, 2010 · Viewed 10.5k times · Source

I am trying to evaluate some of the best log utilities available for .NET framework, such as Microsoft Enterprise Library, Log4Net, elmah.

Can someone who has already gone through this exercise would come to my help in listing pros and cons of the best available in the market.

Thanks & Regards, Rajeev Ranjan Lall

Answer

Peter Stegnar picture Peter Stegnar · Jan 21, 2010

In general good one is Log4net.

PROS: Log4Net supports many output sources.
CONS: Sometimes can slow your application.

For ASP.NET application is of the best ELMAH.

PROS: You do not have to change an application code a bit to use Elmah. You have to just include in you application.
CONS: Not that I know.