public class Logger
extends java.lang.Object
For speed reasons, the static variables are not protected with semaphores. In other words, if you dynamicaly change the logging settings, then some threads may still use the old setting.
| Modifier and Type | Field | Description |
|---|---|---|
static boolean |
enabled |
|
static DebugLogger |
logger |
| Constructor | Description |
|---|---|
Logger(java.lang.Class x) |
| Modifier and Type | Method | Description |
|---|---|---|
static Logger |
getLogger(java.lang.Class x) |
|
boolean |
isEnabled() |
|
void |
log(int lv,
java.lang.String message) |
|
void |
log(int lv,
java.lang.String message,
java.lang.Throwable cause) |
public static boolean enabled
public static DebugLogger logger
public static final Logger getLogger(java.lang.Class x)
public final boolean isEnabled()
public final void log(int lv,
java.lang.String message)
public final void log(int lv,
java.lang.String message,
java.lang.Throwable cause)