views:

285

answers:

9

I've recently been introduced to log4net for use with a .NET app; I've never used a third-party tool for logging before.

What other logging tools do you use for which language and why?

+4  A: 

Log4j for Java. Very versatile, almost no side effect, no performance impact, boatload of built-in outputs.

Damien B
+1  A: 

Log4J configured as an aspect via Spring. It's the log-killer :)

Pablo Fernandez
+1  A: 

NLog. Customizable via .config file to log messages to SQL, console or file. Vefy flexible. Open source. Here's a nice article about it. Similar to log4net.

Muxa
A: 

python's built in logging module

Jason Baker
+1  A: 

For c++, I've used Apache's log4cxx. It works and has a liberal license. One issue, the current Debian package (liblog4cxx9-dev) is 0.9.0, but the latest version is 0.10 and the API has changed a bit.

David Nehme
A: 

Microsoft Enterprise Library Logging

A: 

I recently asked this question, the results are here. Also in the process of testing the enterprise library I stuck up a blog entry recording how I did it. In the end the other aspects of the enterprise library were very well integrated into logging and I chose to go forth with the enterprise library, though I'm still evaluating some aspects of it.

If you're interested, my blog entry on the Logging Applicaiton Block is here.

Odd
A: 

I looked into both the log4net and the Microsoft Logging Application Block http://msdn.microsoft.com/en-us/library/cc511708.aspx. In the end I went with the Logging Application Block as it can log in more formats out of the box. However log4net is slightly faster unless you are logging heavily and performance is critical you will not notice any difference in a real world application.

PJB
+1  A: 

Log4Net supports more formats these days with many community extensions. Not so much on the Logging Application Block.

David Starr - Elegant Code