Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 14, 2012 07:17 AM by GauravGoyal
Nov 13, 2012 10:37 PM|LINK
I am writing a 3 layered architecture as follows
2 Business Layer
3 Data Layer
I want to prepare myself for future bug tracking and therefore would like to implement some sort of logging. But from here all the trouble starts. What should i log? The more i do the more dirty code and performance hit i get. Personally i hate seeing log
statements in the middle of the code.
In respect to logging, should i log all the web api request as described in http://weblogs.asp.net/pglavich/archive/2012/02/26/asp-net-web-api-request-response-usage-logging.aspx or should i only log the bug reported areas by the customers?
Just to let you know, i am thinking of use Log4Net.
Thanks in advance
Nov 13, 2012 11:53 PM|LINK
would like to implement some sort of logging
I would do logging in the first layer the stack trace , when error. That will be enough for the start.
Nov 14, 2012 12:55 AM|LINK
And make sure you don't log sensitive data (such as passwords, credit card numbers, etc).
Nov 14, 2012 03:22 AM|LINK
you should log error no error description and the event from where it is triggered.
Nov 14, 2012 07:17 AM|LINK
The perfect solution