views:

76

answers:

4

Hi,

I got an exception in a program that I tested for someone. The program is written in Delphi and uses a nice exception logging tool named madExcept. It allows exception reporting of the user's system, a stack trace and so on.

Is there a pendant for C#?

+2  A: 

Take a look at log4net. It's really flexible and widespread.

NOTE: This is valid if you design the application from ground up in regards to logging.

steinar
You was faster :)
Andrew Bezzub
A: 

We have been using Gurock Smart Inspect a lot where I work, and that is a very good program (not free of shareware though).

You can easily set the level of logging, and also get it to make a more detailed logging just before a exception happens, so it's easy to track it down.

I recommend downloading a trial version and try it out.

Øyvind Bråthen
How do you get it to do a more detailed logging just before an exception occurs?
Lasse V. Karlsen
I guess it logs details internally all the time, but only output according to the level you have set it to do, but if an exception occurs, it "steps back" and output more detailed logging in the time just before the exception occured.
Øyvind Bråthen
+1  A: 

NLog is also a good option http://www.nlog-project.org

Jroc
+1  A: 

EurekaLog has .net and Delphi versions.

Tony