Sorry for an off-topic post. I hope I will get an answer since this is a very active
mailing list.

I am using Log4J for logging in my current project with too many logging statements.  I
wrap every logging statements with the  isDebugEnabled(), isWarnEnabled(), etc.  During
production , the logging level will be set to very minimum, and only critical errors 
will
be logged.  But however,  the boolean comparison statements (whether or not to log) 
will
be executed, which we feel will have a performance impact.

I would like to know if  it is a good idea to pre-process the java code to remove all 
the
logging statements and then create the binary?? or to begin with, limit the number of
logging statements during the development process itself?? If pre-processing the source
code to find and remove logging statements.. is a better option, then can some one 
point
me to a good java pre processor?

Thanks in Advance.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to