Last post Jan 28, 2011 02:58 PM by sachingusain
Member
30 Points
121 Posts
Jan 26, 2011 02:22 AM|nirniron|LINK
hello i am new in entlib..
i have a huge application (SERVICE) and i want to know what is the best way to log ...
i mean when shall i log?
do i have to log in each function?
nirnrion
300 Points
80 Posts
Jan 26, 2011 03:03 AM|sarfrazahmed|LINK
Please do read best practices for exception handling
http://www.codeproject.com/KB/architecture/exceptionbestpractices.aspx
http://codebetter.com/karlseguin/2008/05/30/foundations-of-programming-pt-8-back-to-basics-exceptions/
Please mark this post as answer if it helps.
Contributor
5430 Points
1676 Posts
Jan 28, 2011 02:58 PM|sachingusain|LINK
Typically you would have four levels of logging defined in your application: Information, Warning, Error and Trace.
So you can decide what logging event would fit into one of above baskets.
You can read following blog for more details http://nirajrules.wordpress.com/2008/06/14/blogging-best-practicies/
Member
30 Points
121 Posts
When Shall i log
Jan 26, 2011 02:22 AM|nirniron|LINK
hello i am new in entlib..
i have a huge application (SERVICE) and i want to know what is the best way to log ...
i mean when shall i log?
do i have to log in each function?
nirnrion
Member
300 Points
80 Posts
Re: When Shall i log
Jan 26, 2011 03:03 AM|sarfrazahmed|LINK
Please do read best practices for exception handling
http://www.codeproject.com/KB/architecture/exceptionbestpractices.aspx
http://codebetter.com/karlseguin/2008/05/30/foundations-of-programming-pt-8-back-to-basics-exceptions/
Please mark this post as answer if it helps.
Contributor
5430 Points
1676 Posts
Re: When Shall i log
Jan 28, 2011 02:58 PM|sachingusain|LINK
Typically you would have four levels of logging defined in your application: Information, Warning, Error and Trace.
So you can decide what logging event would fit into one of above baskets.
You can read following blog for more details http://nirajrules.wordpress.com/2008/06/14/blogging-best-practicies/
Thanks.