.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Melody Anderson

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

ASP.NET - Error throwing or logging

Posted By: Sruthi Keerthi     Posted Date: September 14, 2009    Points:2   Category :ASP.Net
Dear all,
We are building an ASP.NET application with C#.net as language.

Here we have 3 layers (UI, Business and Database) and need a clarification on error handling/logging. We have an error logging framework to log errors.

My query is that do we need log errors in each layer or only in the main calling layer (UI layer) by throwing the errors to UI layer from business and database layers? Which is the best practice?

If would be great if you could also provide a reference document or web references (If needed).

Thanks and Regards .
Sruthi Keerthi.

Author: Rahul             
Posted Date: September 14, 2009     Points: 5   

I would suggest to use Log4Net for logging error in your asp.net application its flexible, easy to use and its free.

If you are talking the best practices to log error or exception you in read this article



Author: Akhil Raj       [Moderator]      
Posted Date: September 14, 2009     Points: 5   

i don't have experience in log errors.but the following articles may help you..




Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend