Class Logger
java.lang.Object
org.jrd.backend.core.Logger
Class for logging Strings and Exceptions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumprivate static final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidstatic Stringstatic LoggerbooleanvoidShorthand forlog(Logger.Level.DEBUG, message).voidShorthand forlog(Logger.Level.DEBUG, throwable).private voidlog(Logger.Level level, Object o) voidlog(Logger.Level level, String message) voidlog(Logger.Level level, Throwable throwable) voidsetVerbose(boolean verbose)
-
Field Details
-
NULL_OBJECT_MESSAGE
- See Also:
-
isVerbose
private boolean isVerbose -
guiLogging
private boolean guiLogging
-
-
Constructor Details
-
Logger
public Logger()
-
-
Method Details
-
setVerbose
public void setVerbose(boolean verbose) -
isVerbose
public boolean isVerbose() -
getLogger
-
log
-
log
-
log
Shorthand forlog(Logger.Level.DEBUG, message).- Parameters:
message- the string to be logged
-
log
Shorthand forlog(Logger.Level.DEBUG, throwable).- Parameters:
throwable- the exception/error to be logged
-
log
-
disableGuiLogging
public void disableGuiLogging() -
enableGuiLogging
public void enableGuiLogging() -
exToString
-