Solved

What do you use for logging in VS and C#

Posted on 2009-04-14
7
195 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
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!

 

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

RHCE - Red Hat OpenStack Prep Course

This course will provide in-depth training so that students who currently hold the EX200 & EX210 certifications can sit for the EX310 exam. Students will learn how to deploy & manage a full Red Hat environment with Ceph block storage, & integrate Ceph into other OpenStack service

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
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 column That will then direct you to their download page. From that p…
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.

623 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