Package com.spun.util.logger
Class SimpleLogger
java.lang.Object
com.spun.util.logger.SimpleLogger
public class SimpleLogger extends Object
-
Constructor Summary
Constructors Constructor Description SimpleLogger() -
Method Summary
Modifier and Type Method Description static voidevent(String Statement)static AppendablegetLogTo()static voidhourGlass()static voidlogMemoryStatus()Logs the current memory status [total, used, free].static AppendablelogTo(Appendable writer)static AppendablelogToNothing()static StringBufferlogToString()static voidmarkerIn(String statement)Deprecated.static voidmarkerOut(String text)Deprecated.static voidmessage(String Statement)static voidquery(String sqlQuery)static voidquery(String queryName, Object sqlQuery)Prints to screen any variable information to be viewed.static voidsetHourGlassWrap(int numberOfDots)static voidtoggleAll(boolean t)static MarkersuseMarkers()try (Markers m = SimpleLogger.useMarkers();) { }static voiduseOutputFile(String file, boolean addDateStamp)static voidvariable(String statement)static voidvariable(String name, Object value)Prints to screen any variable information to be viewed.static voidvariable(String name, Object[] array)static <T> voidvariable(T[] array)static voidvariableFormated(String string, Object... parameters)static voidwarning(String statement)static voidwarning(String statement, Throwable throwable)static voidwarning(Throwable throwable)
-
Constructor Details
-
SimpleLogger
public SimpleLogger()
-
-
Method Details
-
toggleAll
public static void toggleAll(boolean t) -
setHourGlassWrap
public static void setHourGlassWrap(int numberOfDots) -
hourGlass
public static void hourGlass() -
markerIn
Deprecated. -
markerOut
Deprecated. -
query
-
query
Prints to screen any variable information to be viewed. -
variableFormated
-
variable
-
variable
Prints to screen any variable information to be viewed. -
variable
-
variable
public static <T> void variable(T[] array) -
message
-
event
-
warning
-
warning
-
warning
-
logMemoryStatus
public static void logMemoryStatus()Logs the current memory status [total, used, free]. This forces garbage collection to run first. -
useMarkers
try (Markers m = SimpleLogger.useMarkers();) { } -
logToString
-
logToNothing
-
useOutputFile
-
logTo
-
getLogTo
-