Implement BundleMessage.toString() for direct usage in Log4J logger

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@554 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-05-07 08:43:11 +00:00
parent 8660c267e1
commit 0d49f19903
1 changed files with 5 additions and 0 deletions

View File

@ -73,6 +73,11 @@ public class BundleMessage {
return MessageFormat.format(getBundle(locale).getString(key), formattedArguments);
}
@Override
public String toString() {
return formatLog();
}
public static String formatLog(String key, Object... arguments) {
return format(ROOT_LOCALE, key, arguments);
}