Solved

What do you use for logging in VS and C#

Posted on 2009-04-14
7
193 Views
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.
0
Comment
Question by:ICPooreman
[X]
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
7 Comments
 

Expert Comment

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

Expert Comment

by:abel
ID: 24138671
If you come from the java world, I'd recommend using log4net: http://logging.apache.org/log4net/index.html. You'll find a familiar syntax and it is easy to setup.
0
 

Author Comment

by:ICPooreman
ID: 24138696
Also is there anything built into visual studio that can be used.
0
Independent Software Vendors: 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!

 

Expert Comment

by:mshaw2000
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.
0
 
LVL 6

Accepted Solution

by:
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.

http://msdn.microsoft.com/en-us/library/dd139916.aspx
0
 
LVL 6

Expert Comment

by:ViceroyFizzlebottom
ID: 24138937
0
 

Author Closing Comment

by:ICPooreman
ID: 31569921
thanks
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

738 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