Package org.dreambot.api.utilities
Class Logger
- java.lang.Object
-
- org.dreambot.api.utilities.Logger
-
public class Logger extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Logger.LogType
-
Constructor Summary
Constructors Constructor Description Logger()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
commandLog(Logger.LogType level, java.lang.Object obj)
static void
consoleLog(Logger.LogType level, java.lang.Object obj)
static void
debug(java.lang.Object object)
static void
debug(java.util.function.Supplier<java.lang.Object> objectSupplier)
static void
error(java.lang.Object object)
static void
error(java.lang.Object object, java.lang.Throwable e)
static void
error(java.lang.String message, java.lang.Throwable e)
static void
format(java.lang.String format, java.lang.Object... args)
static void
format(Logger.LogType level, java.lang.String format, java.lang.Object... args)
static java.lang.String
getCurrentLogPath()
Returns the path to the log file for this instancestatic void
info(java.lang.Object object)
static boolean
isCommandLogging()
static boolean
isConsoleLogging()
static boolean
isDebugDisabled()
static boolean
isDisplayDebugMessages()
static void
log(java.awt.Color color, java.lang.Object message)
static void
log(java.lang.Object object)
static void
log(Logger.LogType level, java.lang.Object obj)
static void
setCommandLogging(boolean commandLogging)
static void
setConsoleLogging(boolean consoleLogging)
static void
setDisplayDebugMessages(boolean displayDebugMessages)
static void
setForceNoDebug(boolean forced)
static void
warn(java.lang.Object object)
-
-
-
Method Detail
-
isDisplayDebugMessages
public static boolean isDisplayDebugMessages()
-
setDisplayDebugMessages
public static void setDisplayDebugMessages(boolean displayDebugMessages)
-
isCommandLogging
public static boolean isCommandLogging()
-
setCommandLogging
public static void setCommandLogging(boolean commandLogging)
-
isConsoleLogging
public static boolean isConsoleLogging()
-
setConsoleLogging
public static void setConsoleLogging(boolean consoleLogging)
-
log
public static void log(Logger.LogType level, java.lang.Object obj)
-
error
public static void error(java.lang.Object object, java.lang.Throwable e)
-
error
public static void error(java.lang.Object object)
-
format
public static void format(java.lang.String format, java.lang.Object... args)
-
format
public static void format(Logger.LogType level, java.lang.String format, java.lang.Object... args)
-
log
public static void log(java.awt.Color color, java.lang.Object message)
-
log
public static void log(java.lang.Object object)
-
info
public static void info(java.lang.Object object)
-
debug
public static void debug(java.lang.Object object)
-
debug
public static void debug(java.util.function.Supplier<java.lang.Object> objectSupplier)
-
isDebugDisabled
public static boolean isDebugDisabled()
-
setForceNoDebug
public static void setForceNoDebug(boolean forced)
-
warn
public static void warn(java.lang.Object object)
-
error
public static void error(java.lang.String message, java.lang.Throwable e)
-
commandLog
public static void commandLog(Logger.LogType level, java.lang.Object obj)
-
consoleLog
public static void consoleLog(Logger.LogType level, java.lang.Object obj)
-
getCurrentLogPath
public static java.lang.String getCurrentLogPath()
Returns the path to the log file for this instance- Returns:
- path to the log file if logging has been set up, otherwise null
-
-