|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jetty.util.log.Log
public class Log
Logging. This class provides a static logging interface. If an instance of the org.slf4j.Logger class is found on the classpath, the static log methods are directed to a slf4j logger for "org.eclipse.log". Otherwise the logs are directed to stderr.
The "org.eclipse.jetty.util.log.class" system property can be used to select a specific logging implementation.
If the system property org.eclipse.jetty.util.log.IGNORED is set, then ignored exceptions are logged in detail.
StdErrLog
,
Slf4jLog
Field Summary | |
---|---|
static boolean |
__ignored
|
static String |
__logClass
|
static String |
EXCEPTION
|
static String |
IGNORED
|
Constructor Summary | |
---|---|
Log()
|
Method Summary | |
---|---|
static void |
debug(String msg)
|
static void |
debug(String msg,
Object arg)
|
static void |
debug(String msg,
Object arg0,
Object arg1)
|
static void |
debug(Throwable th)
|
static Logger |
getLog()
|
static Logger |
getLogger(String name)
Obtain a named Logger or the default Logger if null is passed. |
static void |
ignore(Throwable thrown)
Ignore an exception unless trace is enabled. |
static void |
info(String msg)
|
static void |
info(String msg,
Object arg)
|
static void |
info(String msg,
Object arg0,
Object arg1)
|
static boolean |
initialized()
|
static boolean |
isDebugEnabled()
|
static void |
setLog(Logger log)
|
static void |
setLogToParent(String name)
Set Log to parent Logger. |
static void |
warn(String msg)
|
static void |
warn(String msg,
Object arg)
|
static void |
warn(String msg,
Object arg0,
Object arg1)
|
static void |
warn(String msg,
Throwable th)
|
static void |
warn(Throwable th)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EXCEPTION
public static final String IGNORED
public static String __logClass
public static boolean __ignored
Constructor Detail |
---|
public Log()
Method Detail |
---|
public static boolean initialized()
public static void setLog(Logger log)
public static Logger getLog()
public static void setLogToParent(String name)
If there is a different Log class available from a parent classloader,
call getLogger(String)
on it and construct a LoggerLog
instance
as this Log's Logger, so that logging is delegated to the parent Log.
This should be used if a webapp is using Log, but wishes the logging to be directed to the containers log.
If there is not parent Log, then this call is equivalent to
Log.setLog(Log.getLogger(name));
name
- Logger namepublic static void debug(Throwable th)
public static void debug(String msg)
public static void debug(String msg, Object arg)
public static void debug(String msg, Object arg0, Object arg1)
public static void ignore(Throwable thrown)
thrown
- the Throwable to ignorepublic static void info(String msg)
public static void info(String msg, Object arg)
public static void info(String msg, Object arg0, Object arg1)
public static boolean isDebugEnabled()
public static void warn(String msg)
public static void warn(String msg, Object arg)
public static void warn(String msg, Object arg0, Object arg1)
public static void warn(String msg, Throwable th)
public static void warn(Throwable th)
public static Logger getLogger(String name)
name
- the Logger name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |