Hi, >>before logging any event. But why is there only such a method for DEBUG >>and INFO ? I am pretty sure there is a reason for not having >>isWarningEnabled(), isErrorEnabled(), and isFatalEnabled() but I cannot >>see which... Could you please enlighten me on this point ?
There's isEnabledFor(Level), which works. As a matter of practice: warnings, errors, fatals are considered in our system to be rare events, always worthy of attention, and events where logging performance is not a consideration, they must be logged. Debug statements are the opposite. They are expected to be numerous, if enabled, and logging performance is very important. Your system may have different guidelines, I just wanted to share ;) Yoav Shapira Millennium ChemInformatics
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
-- To unsubscribe, e-mail: <mailto:log4j-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:log4j-dev-help@;jakarta.apache.org>