struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rene Eigenheer <reigenh...@bridgesolutions.net>
Subject RE: Best Practices for Logging?
Date Fri, 06 Dec 2002 21:47:51 GMT
another question for best practice:

I often see debug messages code like:

if (log.isDebugEnabled() {
   log.debug("debug message");
}


and sometimes:
log.debug("debug message");  // let the log class decide whether it has to
do debug

which of the two versions do you prefer - why?


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message