Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

What do you use for logging in VS and C#

Posted on 2009-04-14
7
Medium Priority
?
197 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
Cloud Training Guides

FREE GUIDES: In-depth and hand-crafted Linux, AWS, OpenStack, DevOps, Azure, and Cloud training guides created by Linux Academy instructors and the community.

 

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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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 synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

722 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