KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In Log4Net, What is the difference between Debug method and Info method ? Generally when should i use one over the other ? Ex : try { // updating the customer object log.Info ("before loading current customer"); //1 Customer objCustomer=GetCurrentLoggedInCustomer(); log.Info ("Current customer loaded "); //2 objCustomer.LastName="New name"; log.Info("Before saving"); //3 objCustomer.Save(); log.Info("Saved"); //4 } catch(Exception ex) { log.Error(ex.Message); //5 } Should i use Debug method in 1,2,3,4 positions ?
Tags (comma-separated)
Save Edits
Cancel