c# - logging: Is it acceptable to use try finally blocks for logging method start and end? -
consider situation method lot of homecoming statements needs logged, rather doing,
if(condition1) { calculation here log homecoming } else if(condition2) { calculation here log homecoming b } else { calculation here log homecoming c }
if log statements same, improve log way?
try { if(condition1) { calculation here homecoming } else if(condition2) { calculation here homecoming b } else { calculation here homecoming c } } { log }
are there implications if create seek block logging? best practice?
why not homecoming @ end this
var returnvalue if(condition1) { calculation here returnvalue = } else if(condition2) { calculation here returnvalue = b } else { calculation here returnvalue = c } log homecoming returnvalue
c# java logging
No comments:
Post a Comment