Package com.spun.util.logger
Class SimpleLoggerInstance
java.lang.Object
com.spun.util.logger.SimpleLoggerInstance
public class SimpleLoggerInstance extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleLoggerInstance.Symbols -
Field Summary
Fields Modifier and Type Field Description booleaneventinthourGlassinthourGlassWrapstatic intINbooleanmarkerstatic intOUTbooleanquerybooleanstacktracesbooleantimestampbooleanvariable -
Constructor Summary
Constructors Constructor Description SimpleLoggerInstance()SimpleLoggerInstance(int wrapperLevels) -
Method Summary
Modifier and Type Method Description voidevent(String Statement)AppendablegetLogTo()voidhourGlass()voidlogMemoryStatus()Logs the current memory status [total, used, free].voidlogTo(Appendable writer)StringBufferlogToString()voidmarkerIn(String statement)voidmarkerOut(String text)voidmessage(String Statement)voidquery(String sqlQuery)voidquery(String queryName, Object sqlQuery)Prints to screen any variable information to be viewed.voidsetHourGlassWrap(int numberOfDots)longstartTimer()voidstopTimer(long startTime, long maxTime, String function)voidtoggleAll(boolean t)MarkersuseMarkers()try (Markers m = SimpleLogger.useMarkers();) { }voiduseOutputFile(String file, boolean addDateStamp)voidvariable(String statement)voidvariable(String name, Object value)Prints to screen any variable information to be viewed.voidvariable(String name, Object[] array)<T> voidvariable(T[] array)voidvariableFormated(String string, Object... parameters)voidwarning(String statement)voidwarning(String statement, Throwable throwable)voidwarning(Throwable throwable)
-
Field Details
-
IN
public static final int IN- See Also:
- Constant Field Values
-
OUT
public static final int OUT- See Also:
- Constant Field Values
-
marker
public boolean marker -
event
public boolean event -
variable
public boolean variable -
query
public boolean query -
timestamp
public boolean timestamp -
stacktraces
public boolean stacktraces -
hourGlass
public int hourGlass -
hourGlassWrap
public int hourGlassWrap
-
-
Constructor Details
-
SimpleLoggerInstance
public SimpleLoggerInstance() -
SimpleLoggerInstance
public SimpleLoggerInstance(int wrapperLevels)
-
-
Method Details
-
toggleAll
public void toggleAll(boolean t) -
setHourGlassWrap
public void setHourGlassWrap(int numberOfDots) -
hourGlass
public void hourGlass() -
startTimer
public long startTimer() -
stopTimer
-
markerIn
-
markerOut
-
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 <T> void variable(T[] array) -
message
-
event
-
warning
-
warning
-
warning
-
logMemoryStatus
public void logMemoryStatus()Logs the current memory status [total, used, free]. This forces garbage collection to run first. -
useMarkers
try (Markers m = SimpleLogger.useMarkers();) { } -
logToString
-
useOutputFile
-
logTo
-
getLogTo
-