Exception Handling & Logging

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

Exception Handling & Logging

Post by MMIKAL » Sun Jun 20, 2010 9:14 pm

I am getting lots of OOPS pages, which I belive is generated for exceptions. It seems nothing is logged by log4net in the log file or anywher else.

1- How do I enable logging in Runtime (I enabled debug in web.config, but this is for compile time).

2- How do I see more detail for the exceptions?

2- Do I override it with my custom error page, which shows more information ?

3- Is ther any Gloabl exception handler buil-in, so it catches unhandled application errors?

4- Is ther any documentatuion on the subject anywhere?

Thanks in advance.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Exception Handling & Logging

Post by mazhar » Mon Jun 21, 2010 4:11 am

Errors are being handled in Global.asax as well. I guess we are not Logging error information in some cases for example HTTP errors like page not found etc. You can simply turn of custom error pages and it will try to emit the error details on same page instead of redirecting it to custom pages.

Post Reply