What do you use for logging in VS and C#

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.
ICPooremanAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ViceroyFizzlebottomConnect With a Mentor Commented:
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
 
mshaw2000Commented:
We use log4net for our logging.  Does an excellent job and is fairly easy to extend should the need arise.
0
 
abelCommented:
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
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
ICPooremanAuthor Commented:
Also is there anything built into visual studio that can be used.
0
 
mshaw2000Commented:
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
 
ViceroyFizzlebottomCommented:
0
 
ICPooremanAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.