tags:

views:

455

answers:

3

Hello,

We are starting a new ASP.NET 3.5 MVC application (with Entity Framework, etc). The application will handle exceptions at method level and log them. Unhandled and Runtime exceptions should also be logged. The logging module/framework should log BOTH application error/debug/info messages and unhandled exceptions.

Options:

Please compare the frameworks.

Which will be the most suitable choice ?

Thank You.

A: 

You should probably provide a little more context. For instance,

  1. What do you mean, "at the method level"?
  2. When you say, "handle the exception" do you mean anything other than logging?
  3. I don't understand your distinction between Unhandled and Runtime exceptions. Please elaborate.

Also, have you considered doing nothing at all and letting ASP.NET Health Monitoring do the work for you? Please say how that would be a problem. The problem you state will correspond to one or more requirements that you have not yet stated.

Without more detail, it's hard to determine what constitutes a suitable choice.

John Saunders
A: 

There are a lot of logging and tracing tools out there for .NET, including our very own SmartInspect tool. We've collected a list of logging tools and posted them to DotNetLogging.com. But as John already wrote, without providing more details about your application and logging needs, it's hard to recommend a specific tool or solution.

Dennis G.
A: 

Thank you for your replies.

What I meant was exceptions generated by an executing program (e.g FormatException) and exceptions generated by CLR (e.g. OutOfMemoryException)

The application has very simple logging requirements namely:

  • log exceptions caught in try/catch blocks in methods.
  • log unhandled exceptions
  • text file logging
  • least performance hit
dev