By using if (debug) { log.xxx() } the string concatination that is being 
done to generate the log message can be skipped if debug logging is not 
enabled.  This means that things will probably run faster when debug mode is 
turned off.

If there is just a simple string constant then it will only slow things down 
slightly when debug is enabled.

--jason


On Tue, 18 Dec 2001, 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