Package com.spun.util.logger
Class SimpleLogger
java.lang.Object
com.spun.util.logger.SimpleLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic SimpleLoggerInstanceget()static AppendablegetLogTo()static voidstatic voidLogs the current memory status [total, used, free].static AppendablelogTo(Appendable writer) static Appendablestatic StringBufferstatic StringBufferlogToString(boolean threadSafe) static voidDeprecated.static voidDeprecated.static voidstatic voidstatic voidPrints to screen any variable information to be viewed.static QuietAutoCloseablequiet()static voidsetHourGlassWrap(int numberOfDots) static voidtoggleAll(boolean t) static Markerstry (Markers m = SimpleLogger.useMarkers();) { }static voiduseOutputFile(String file, boolean addDateStamp) static voidstatic voidPrints to screen any variable information to be viewed.static voidstatic voidstatic <T> voidvariable(T[] array) static voidvariableFormated(String string, Object... parameters) static voidstatic voidstatic void
-
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
-
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
-
logToString
-
logToNothing
-
useOutputFile
-
logTo
-
getLogTo
-
get
-
quiet
-