Constructor and Description |
---|
Log() |
Modifier and Type | Method and Description |
---|---|
static void |
disableConsoleHandler()
Disable logging to the console
|
static void |
enableFileLogger()
Start logging to the file defined by "logFile" in settings files
|
static void |
exception(Throwable ex,
String message,
Object... args) |
static void |
fine(String message,
Object... args) |
static void |
finer(String message,
Object... args) |
static void |
finest(String message,
Object... args) |
static Level |
getLogLevel() |
static void |
info(String message,
Object... args) |
static boolean |
isAlwaysIncludeLineNumber() |
static void |
logForFrame(int frame,
Level level,
String message,
Object... args)
Logs a message, setting the class, method and source line number using the stack frame index passed in.
|
static void |
setAlwaysIncludeLineNumber(boolean alwaysIncludeLineNumber) |
static void |
setLogLevel(Level level) |
static void |
setLogLevelFromSettings() |
static void |
warn(String message,
Object... args) |
static void |
warning(String message,
Object... args) |
public Log()
public static void disableConsoleHandler()
public static void enableFileLogger()
public static void setLogLevel(Level level)
public static Level getLogLevel()
public static void setLogLevelFromSettings()
public static void logForFrame(int frame, Level level, String message, Object... args)
frame
- - the stack frame to use. Use '2' to log to one level above the callerlevel
- message
- args
- public static boolean isAlwaysIncludeLineNumber()
public static void setAlwaysIncludeLineNumber(boolean alwaysIncludeLineNumber)
Copyright © 2016. All rights reserved.