Solved

What do you use for logging in VS and C#

Posted on 2009-04-14
7
190 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
  • 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
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 NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now