mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
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:
parent
8660c267e1
commit
0d49f19903
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user