Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #12890
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe09.iad.POSTED!8ad76e89!not-for-mail |
|---|---|
| From | Arved Sandstrom <asandstrom3minus1@eastlink.ca> |
| User-Agent | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.27) Gecko/20120216 Lightning/1.0b2 Thunderbird/3.1.19 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Exception Handling |
| References | <XnsA012D42584994jpnasty@94.75.214.39> <jjh39f$crc$1@news.albasani.net> <XnsA01385245AD09jpnasty@94.75.214.39> <jjipli$np7$1@news.albasani.net> <XnsA013B63659242jpnasty@94.75.214.39> |
| In-Reply-To | <XnsA013B63659242jpnasty@94.75.214.39> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| Lines | 58 |
| Message-ID | <yPa7r.13504$wf.12231@newsfe09.iad> (permalink) |
| X-Complaints-To | abuse@newsgroups-download.com |
| NNTP-Posting-Date | Sun, 11 Mar 2012 23:46:38 UTC |
| Organization | Public Usenet Newsgroup Access |
| Date | Sun, 11 Mar 2012 20:46:38 -0300 |
| X-Received-Bytes | 3935 |
| Xref | csiph.com comp.lang.java.programmer:12890 |
Show key headers only | View raw
On 12-03-11 06:54 PM, Novice wrote: > Lew <noone@lewscanon.com> wrote in news:jjipli$np7$1@news.albasani.net: > [ SNIP ] >> We've discussed this before, remember? >> >> It's not expensive. When you're calling a logger statement for an >> error, the cost of the error SWAMPS the time in the logger. Think >> about it. >> > I suppose I'm too easily swayed by other opinions. Arved, who seems very > knowledgeable, cited that article, which seemed to give it his seal of > approval. I don't know the author of the article but I tend to assume he > must be an expert to be asked to write about a Java topic. The author > cites people who he considers experts and the upshot is that the advice > seems to argue against putting positioning information in the log unless > its necessary (which it probably isn't if the stacktrace is in the log). > Now you make a persuasive argument contradicting the article. I'm > satisfied that you have serious expertise in this area so I have no > reason to dismiss your argument. But why didn't the experts who wrote the > article modify their remarks accordingly? [ SNIP ] The article did have my "seal of approval". That's to say, I read the article, and agreed with most of it. Not 100 percent, but most of it. And I didn't see anything in it which would lead a person down the garden path. I recommend it because it's a useful read...but you shouldn't accept it as the gospel, just as you shouldn't accept "Effective Java" as the gospel either. Logging is also a somewhat subjective matter. That's why different opinions on different specifics. Ultimately TIMTOWTDI, to borrow a Perl motto. What really counts is when the rubber meets the road, and the logs have to be _used_, did the ops support people get what they needed out of the logs, without too much anguish? You've heard different viewpoints - mine and others' - on including positional informational in logs. In the final analysis what matters is the sufficiency of information in the logs. Don't worry overmuch about logging performance until it's a problem; the whole point of having layouts in a properties file is that you can tweak them if necessary. I have a specific reason why I don't normally include certain positional information, except for error stacktraces, but someone else might have a good reason for why they do want this info. One note: *never* assume that because somebody has an article in a blog or an Internet magazine or a dead tree magazine or even a scholarly journal that they are experts. Check the references. Check the style of the prose: are the conclusions backed up by understandable argument, or are they just "put out there"? Google for other articles on the same topic. AHS -- Last week I helped my friend stay put. It's a lot easier'n helpin' 'em move. I just went over to his house and made sure that he did not start to load shit into a truck. -- Mitch Hedberg
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Exception Handling Novice <novice@example..com> - 2012-03-11 01:51 +0000
Re: Exception Handling Lew <noone@lewscanon.com> - 2012-03-10 18:39 -0800
Re: Exception Handling Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-03-11 11:53 -0300
Re: Exception Handling Lew <noone@lewscanon.com> - 2012-03-11 10:51 -0700
Re: Exception Handling Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-03-11 16:35 -0300
Re: Exception Handling Novice <novice@example..com> - 2012-03-11 17:05 +0000
Re: Exception Handling Lew <noone@lewscanon.com> - 2012-03-11 10:53 -0700
Re: Exception Handling Novice <novice@example..com> - 2012-03-11 20:36 +0000
Re: Exception Handling Lew <noone@lewscanon.com> - 2012-03-11 11:07 -0700
Re: Exception Handling Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-03-11 17:00 -0300
Re: Exception Handling Novice <novice@example..com> - 2012-03-11 22:02 +0000
Re: Exception Handling Arivald <NOSPAMarivald@interia.pl> - 2012-03-11 21:03 +0100
Re: Exception Handling Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-03-11 18:31 -0300
Re: Exception Handling Novice <novice@example..com> - 2012-03-11 21:54 +0000
Re: Exception Handling Patricia Shanahan <pats@acm.org> - 2012-03-11 15:26 -0700
Re: Exception Handling Novice <novice@example..com> - 2012-03-11 23:23 +0000
Re: Exception Handling Lew <noone@lewscanon.com> - 2012-03-11 16:52 -0700
Re: Exception Handling Novice <novice@example..com> - 2012-03-12 17:16 +0000
Re: Exception Handling Lew <noone@lewscanon.com> - 2012-03-13 08:31 -0700
Re: Exception Handling Patricia Shanahan <pats@acm.org> - 2012-03-11 17:51 -0700
Re: Exception Handling Novice <novice@example..com> - 2012-03-12 17:26 +0000
Re: Exception Handling Arne Vajhøj <arne@vajhoej.dk> - 2012-03-12 14:49 -0400
Re: Exception Handling Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-03-11 20:46 -0300
Re: Exception Handling Novice <novice@example..com> - 2012-03-12 17:43 +0000
Re: Exception Handling Patricia Shanahan <pats@acm.org> - 2012-03-11 11:14 -0700
Re: Exception Handling Novice <novice@example..com> - 2012-03-11 22:35 +0000
Re: Exception Handling Lew <noone@lewscanon.com> - 2012-03-11 16:58 -0700
Re: Exception Handling Novice <novice@example..com> - 2012-03-12 15:44 +0000
Re: Exception Handling Gene Wirchenko <genew@ocis.net> - 2012-03-12 10:34 -0700
Re: Exception Handling Arivald <NOSPAMarivald@interia.pl> - 2012-03-11 20:34 +0100
Re: Exception Handling Novice <novice@example..com> - 2012-03-11 22:36 +0000
Re: Exception Handling Arne Vajhøj <arne@vajhoej.dk> - 2012-03-12 14:41 -0400
Re: Exception Handling Arne Vajhøj <arne@vajhoej.dk> - 2012-03-12 14:37 -0400
Re: Exception Handling Novice <novice@example..com> - 2012-03-12 22:43 +0000
Re: Exception Handling Lew <lewbloch@gmail.com> - 2012-03-12 16:11 -0700
Re: Exception Handling Arivald <NOSPAMarivald@interia.pl> - 2012-03-13 00:54 +0100
Re: Exception Handling Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-03-13 06:05 -0300
csiph-web