|---------+----------------------------> | | "Stephen | | | McConnell" | | | <[EMAIL PROTECTED]| | | .org> | | | | | | 20/07/2004 06:22 | | | PM | | | Please respond to| | | "Avalon framework| | | users" | | | | |---------+----------------------------> >--------------------------------------------------------------------------------------------------------------| | | | To: "'Avalon framework users'" <[EMAIL PROTECTED]> | | cc: | | Subject: RE: Handling exceptions | |Classification: |-------------------| | | | ( ) In-Confidence | | | | ( ) Unclassified | | | |-------------------| | | | >--------------------------------------------------------------------------------------------------------------|
If( getLogger().isErrorEnabled() ) { final String error = "My deep and meaningful error message."; getLogger().error( error ); } <REPLY> If I remember correctly, the above is equivalent to getLogger().error( "My deep and meaningful error message." ); The logger internally checks whether isErrorEnabled (at least LogKit and Log4J did this). Is there something different in its implementation under Merlin? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] **************************************************************** NOTICE - This message is intended only for the use of the addressee named above and may contain privileged and confidential information. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action based upon it. If you received this message in error please notify HIC immediately. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of HIC. **************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]