Are there any opinions regarding the lack of log method such as

  public void log(String msg, Object[] parameters, Throwable ex)
  {
    if (logger.isEnabled())
            logger.log(java.text.MessageFormat.format(msg, parameters), ex)
  }

This method would only create the string to log if the logger is
actually enabled. Also, it might make it easier to internationalize the
code since the strings to change may be easier to locate.

Any pros and cons to this approach?

Achim
-- 
Achim Felber
e-mail: [EMAIL PROTECTED]

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

Reply via email to