Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #3180
| From | Lew <noone@lewscanon.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: ArrayList in Eclipse |
| Date | 2011-04-21 00:46 -0400 |
| Organization | albasani.net |
| Message-ID | <ioocr5$fu6$1@news.albasani.net> (permalink) |
| References | <919alnF872U1@mid.individual.net> <ioo6mg$v5e$1@dont-email.me> <ioobbi$u7e$1@speranza.aioe.org> |
Nasser M. Abbasi wrote: > markspace wrote: >> I've also found that well placed log statements are a faster way of >> debugging than stepping through code in a debugger. And debuggers can't >> be used when timing is a source of error. >> >> <http://logging.apache.org/log4j/1.2/> > It depends on the situation. In some cases, log debugging is > much more productive. Sometimes, one want to set a breakpoint > somewhere and examine data in a way not easily done by logging. > > One problem with log debugging is how to turn it on/off on > selected area of the applications. If one wants logging generated > from one function and not another, then one ends up using more > flag and switches. Also there can be a need to change the > level of debugging (verbose, summary, etc...) > > But I think a well designed logging facility can achieve > most of this, but I think this needs to be designed and > developed as part of the whole application. For large > applications, a good logging facility is essential. > > I think some programmers add logging after the application is > deveopled, instead of designing it as part of the application > itself. I agree twice over. The larger issue is that logging is part of the production environment. It is meant to serve the ops team; benefit to developers follows consequently. Understand that logging doesn't serve to verify variables, methods and the like. Logging serves to verify correct user-visible function; necessary to that purpose logging sometimes verifies variables, methods and the like (at jul's FINEST or log4j's DEBUG level). As you say, logging is an essential component of system design, every bit as much as the functional requirements. After all, no functional requirements succeed if the system cannot run. Logging and assertions are run-time, class-by-class controllable for a reason. -- Lew Honey, don't scare the children.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
ArrayList in Eclipse Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-21 01:05 +0100
Re: ArrayList in Eclipse Lew <noone@lewscanon.com> - 2011-04-20 22:52 -0400
Re: ArrayList in Eclipse markspace <-@.> - 2011-04-20 20:01 -0700
Re: ArrayList in Eclipse "Nasser M. Abbasi" <nma@12000.org> - 2011-04-20 21:21 -0700
Re: ArrayList in Eclipse Lew <noone@lewscanon.com> - 2011-04-21 00:46 -0400
Re: ArrayList in Eclipse Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-04-21 06:23 -0300
Re: ArrayList in Eclipse Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-21 22:20 +0100
Re: ArrayList in Eclipse Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-04-21 20:55 -0400
Re: ArrayList in Eclipse markspace <-@.> - 2011-04-21 19:21 -0700
Re: ArrayList in Eclipse Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-24 16:04 +0100
csiph-web