public final class AppLogger extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LOG_FILENAME |
Modifier and Type | Method and Description |
---|---|
static boolean |
createFileLogger(File logDir)
Creates the file logger.
|
static void |
debug(String message)
Log debug.
|
static void |
error(String message)
Log error.
|
static void |
error(Throwable throwable)
Log error.
|
static void |
errorMinimal(Throwable throwable)
Log error (without stacktrace).
|
static ConsoleLogger |
getConsoleLogger()
Returns the current ConsoleLogger.
|
static File |
getLogFile()
Returns the log file.
|
static void |
info(String message)
Log info.
|
static void |
info(Throwable throwable)
Log info.
|
static boolean |
isDebugEnabled()
Returns true if debug is enabled.
|
static void |
reset() |
static void |
setConsole(ConsoleLogger console)
Set the ConsoleLogger to use.
|
static void |
warn(String message)
Log warning.
|
static void |
warn(Throwable throwable)
Log warning.
|
public static final String LOG_FILENAME
public static void reset()
public static boolean createFileLogger(File logDir)
logDir
- the log directorypublic static void debug(String message)
message
- the debug messagepublic static void error(String message)
message
- the error messagepublic static void error(Throwable throwable)
throwable
- the caught exceptionpublic static void errorMinimal(Throwable throwable)
throwable
- the caught exceptionpublic static ConsoleLogger getConsoleLogger()
public static File getLogFile()
public static void info(String message)
message
- the info messagepublic static void info(Throwable throwable)
throwable
- the caught exceptionpublic static boolean isDebugEnabled()
public static void setConsole(ConsoleLogger console)
console
- the ConsoleLogger to usepublic static void warn(String message)
message
- the warning messagepublic static void warn(Throwable throwable)
throwable
- the caught exception