What do you use for logging in VS and C#

Posted on 2009-04-14
Last Modified: 2013-12-17
I recently moved from java to .net and C#.  I was wondering if anyone out there had any tips as to what to use for logging.  In java I was using log4j and I was hoping to find something similar in .net.
Question by:ICPooreman
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1

Expert Comment

ID: 24138584
We use log4net for our logging.  Does an excellent job and is fairly easy to extend should the need arise.
LVL 39

Expert Comment

ID: 24138671
If you come from the java world, I'd recommend using log4net: You'll find a familiar syntax and it is easy to setup.

Author Comment

ID: 24138696
Also is there anything built into visual studio that can be used.
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.


Expert Comment

ID: 24138809
Not that I have run across.  log4net as able mentioned is easy to set up.  The configuration is robust and has supported all of our needs to date.

Accepted Solution

ViceroyFizzlebottom earned 500 total points
ID: 24138902
A great thing Microsoft has done is released the Enterprise Library, which has "blocks" that can be used in a piece-meal fashion.

In your case, the Logging Application Block sounds ideal in that it is definitely robust enough for enterprise applications, but you can also dumb it down and reduce your logging code to literally one line (the rest is all setup in the .config file for you.)

Best of all, all the source code is freely available to tinker with and extend if you wish.

Expert Comment

ID: 24138937

Author Closing Comment

ID: 31569921

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project ( automates most of the tasks discussed in this article. You can even fin…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question