org.spicefactory.pimento.io.util
Class LogUtil

java.lang.Object
  extended by org.spicefactory.pimento.io.util.LogUtil

public class LogUtil
extends Object

Utility methods for logging EntitySnapshots.

Author:
Jens Halm

Constructor Summary
LogUtil()
           
 
Method Summary
static String getLog(List<?> arr, boolean verbose)
          Get a log string for a list of arguments.
static String getLogForValue(Object arg, boolean verbose)
          Get a log string for the specified argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogUtil

public LogUtil()
Method Detail

getLog

public static String getLog(List<?> arr,
                            boolean verbose)
Get a log string for a list of arguments.

Parameters:
arr - the arguments to create a log string for
verbose - whether full logs for snapshots including property values should be created
Returns:
the log string for the specified arguments

getLogForValue

public static String getLogForValue(Object arg,
                                    boolean verbose)
Get a log string for the specified argument.

Parameters:
arg - the argument to create a log string for
verbose - whether full logs for snapshots including property values should be created
Returns:
the log string for the specified argument