tag:blogger.com,1999:blog-8703677915874314943.post3065871540413469081..comments2013-03-18T17:05:38.248-07:00Comments on tl;dr - @Isantipov: How Logging Rule of Thumb saved my butt twice in a dayIsantipovhttp://www.blogger.com/profile/03437385140979882571noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8703677915874314943.post-13504469878116275762013-03-18T17:05:38.248-07:002013-03-18T17:05:38.248-07:00That's totally right - sorry, I wasn't cle...That's totally right - sorry, I wasn't clear enough, when describing the rule (I just seldom use catch block which re-throw exceptions). I will post an update tomorrow.<br /><br />Thanks!Isantipovhttps://www.blogger.com/profile/03437385140979882571noreply@blogger.comtag:blogger.com,1999:blog-8703677915874314943.post-65574514043319350742013-03-18T17:03:10.001-07:002013-03-18T17:03:10.001-07:00haha, good point: I stripped real namespace to pre...haha, good point: I stripped real namespace to prevent information leakage :) (outsource, you know))Isantipovhttps://www.blogger.com/profile/03437385140979882571noreply@blogger.comtag:blogger.com,1999:blog-8703677915874314943.post-38625587449408243792013-03-18T12:39:01.674-07:002013-03-18T12:39:01.674-07:00Tiny amendment:
> The second part of this rule...Tiny amendment:<br /><br />> The second part of this rule is even easier to implement: every catch block should log the exception first.<br /><br />Only if this block does not re-throw this exception, to avoid duplicate logs for a single exception caught twice on different "stages" of call stack.Sergey Tyshkovetshttps://www.blogger.com/profile/12633054321783355522noreply@blogger.comtag:blogger.com,1999:blog-8703677915874314943.post-74594435215420339762013-03-18T10:48:43.544-07:002013-03-18T10:48:43.544-07:00"ProjectName" is a bad name for root nam..."ProjectName" is a bad name for root namespace, seriously. Sounds like a property, not like a namespace, you know.Sergey Tyshkovetshttps://www.blogger.com/profile/12633054321783355522noreply@blogger.com