The reason you might want to do that is if it costs significant 
processing time to build the message that's being logged (like string 
concatenation, or an expensive method call)

-danch

marc fleury wrote:

> ???
> 
> I have a conflict on ServiceDeployer.java
> 
> the conflict is due to the inclusion of "if (debug) log.debug(...)"
> 
> with debug being log.isDebugEnabled()...
> 
> do we need to explicitely do that? I thought part of the interest is that
> the log4j thing would not do anything with the messages if debug was not
> enabled so why the explicit test?
> 
> I will remove these unless something clearly says the contrary
> 
> marcf
> 
> xxxxxxxxxxxxxxxx
> Marc Fleury
> President
> JBoss Group, LLC
> xxxxxxxxxxxxxxxx
> 
> 
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
> 



_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to