locked
When Shall i log RRS feed

  • Question

  • User-994347053 posted

    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 

    Wednesday, January 26, 2011 2:22 AM

Answers

  • User-215742532 posted

    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.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 26, 2011 3:03 AM
  • User712082397 posted

    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/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 28, 2011 2:58 PM

All replies

  • User-215742532 posted

    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.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 26, 2011 3:03 AM
  • User712082397 posted

    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/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 28, 2011 2:58 PM