Package org.marketcetera.util.log
Class LogUtils
- java.lang.Object
-
- org.marketcetera.util.log.LogUtils
-
public final class LogUtils extends Object
General-purpose utilities.- Since:
- 0.5.0
- Version:
- $Id: LogUtils.java 16154 2012-07-14 16:34:05Z colin $
- Author:
- tlerios@marketcetera.com
-
-
Constructor Summary
Constructors Modifier Constructor Description privateLogUtils()Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetListText(Object... list)Returns a textual representation of the given object list.static StringgetSimpleMessage(I18NBoundMessage message)Returns a simplified textual representation of the parameterized message.static StringgetSimpleMessage(I18NMessageProvider provider, I18NMessage message, Object... params)Returns a simplified textual representation of the given provider and parameterized message.static StringgetSimpleMessage(I18NMessage message, Object... params)Returns a simplified textual representation of the parameterized message.
-
-
-
Method Detail
-
getListText
public static String getListText(Object... list)
Returns a textual representation of the given object list. A null list is treated as a list containing a single null element.- Parameters:
list- The list.- Returns:
- The textual representation.
-
getSimpleMessage
public static String getSimpleMessage(I18NMessageProvider provider, I18NMessage message, Object... params)
Returns a simplified textual representation of the given provider and parameterized message.- Parameters:
provider- The message provider.message- The message.params- The message parameters.- Returns:
- The textual representation.
-
getSimpleMessage
public static String getSimpleMessage(I18NMessage message, Object... params)
Returns a simplified textual representation of the parameterized message.- Parameters:
message- The message.params- The message parameters.- Returns:
- The textual representation.
-
getSimpleMessage
public static String getSimpleMessage(I18NBoundMessage message)
Returns a simplified textual representation of the parameterized message.- Parameters:
message- The message.- Returns:
- The textual representation.
-
-