public abstract class Logger extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Logger.Factory |
static class |
Logger.NullLogger |
| Modifier and Type | Field and Description |
|---|---|
static int |
LOG_DEBUG |
static int |
LOG_ERR |
static int |
LOG_INFO |
static int |
LOG_VERBOSE |
static int |
LOG_WARN |
| Modifier | Constructor and Description |
|---|---|
protected |
Logger() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canIgnore(int level) |
void |
debug(String msg) |
void |
debug(String msg,
Throwable t) |
void |
debug(Throwable t) |
void |
error(String msg) |
void |
error(String msg,
Throwable t) |
void |
error(Throwable t) |
static Logger |
getInstance() |
static Logger |
getInstance(String category) |
void |
info(String msg) |
void |
info(String msg,
Throwable t) |
void |
info(Throwable t) |
static boolean |
isDebug() |
static boolean |
isVerbose() |
abstract void |
log(int level,
String msg,
Throwable t) |
static void |
setDebug(boolean debug) |
static void |
setFactory(Logger.Factory factory) |
static void |
setInstance(Logger instance)
If set, this instance will be returned by all requests made to getInstance,
overriding the factory implementation and thereby providing backward
compatibility.
|
static void |
setVerbose(boolean verbose) |
void |
verbose(String msg) |
void |
verbose(String msg,
Throwable t) |
void |
verbose(Throwable t) |
void |
warn(String msg) |
void |
warn(String msg,
Throwable t) |
void |
warn(Throwable t) |
public static final int LOG_ERR
public static final int LOG_WARN
public static final int LOG_INFO
public static final int LOG_VERBOSE
public static final int LOG_DEBUG
public static Logger getInstance()
public static void setFactory(Logger.Factory factory)
public static void setInstance(Logger instance)
public static void setDebug(boolean debug)
public static boolean isDebug()
public static boolean isVerbose()
public static void setVerbose(boolean verbose)
public static boolean canIgnore(int level)
public void error(String msg)
public void error(Throwable t)
public void warn(String msg)
public void warn(Throwable t)
public void info(String msg)
public void info(Throwable t)
public void verbose(String msg)
public void verbose(Throwable t)
public void debug(String msg)
public void debug(Throwable t)
Copyright © 2023 OpenClover.org. All rights reserved.