org.eclipse.jetty.util.log
public class Log extends java.lang.Object
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.
Modifier and Type | Field and Description |
---|---|
static boolean |
__ignored
Legacy flag indicating if
ignore(Throwable) methods produce any output in the Logger s |
static java.lang.String |
__logClass
The
Logger implementation class name |
protected static java.util.Properties |
__props
Logging Configuration Properties
|
static java.lang.String |
EXCEPTION |
static java.lang.String |
IGNORED |
Constructor and Description |
---|
Log() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(java.lang.String msg)
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static void |
debug(java.lang.String msg,
java.lang.Object arg)
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static void |
debug(java.lang.String msg,
java.lang.Object arg0,
java.lang.Object arg1)
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static void |
debug(java.lang.Throwable th)
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static Logger |
getLog()
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static Logger |
getLogger(java.lang.Class<?> clazz)
Obtain a named Logger based on the fully qualified class name.
|
static Logger |
getLogger(java.lang.String name)
Obtain a named Logger or the default Logger if null is passed.
|
static java.util.Map<java.lang.String,Logger> |
getLoggers()
Get a map of all configured
Logger instances. |
static Logger |
getRootLogger()
Get the root logger.
|
static void |
ignore(java.lang.Throwable thrown)
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static void |
info(java.lang.String msg)
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static void |
info(java.lang.String msg,
java.lang.Object arg)
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static void |
info(java.lang.String msg,
java.lang.Object arg0,
java.lang.Object arg1)
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static boolean |
initialized() |
static boolean |
isDebugEnabled()
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static void |
setLog(Logger log) |
static void |
setLogToParent(java.lang.String name)
Set Log to parent Logger.
|
static void |
warn(java.lang.String msg)
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static void |
warn(java.lang.String msg,
java.lang.Object arg)
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static void |
warn(java.lang.String msg,
java.lang.Object arg0,
java.lang.Object arg1)
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static void |
warn(java.lang.String msg,
java.lang.Throwable th)
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
static void |
warn(java.lang.Throwable th)
Deprecated.
anonymous logging is deprecated, use a named
Logger obtained from getLogger(String) |
public static final java.lang.String EXCEPTION
public static final java.lang.String IGNORED
protected static java.util.Properties __props
public static java.lang.String __logClass
Logger
implementation class namepublic static boolean __ignored
ignore(Throwable)
methods produce any output in the Logger
spublic static boolean initialized()
public static void setLog(Logger log)
@Deprecated public static Logger getLog()
public static Logger getRootLogger()
public static void setLogToParent(java.lang.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 name@Deprecated public static void debug(java.lang.Throwable th)
@Deprecated public static void debug(java.lang.String msg)
@Deprecated public static void debug(java.lang.String msg, java.lang.Object arg)
@Deprecated public static void debug(java.lang.String msg, java.lang.Object arg0, java.lang.Object arg1)
@Deprecated public static void ignore(java.lang.Throwable thrown)
@Deprecated public static void info(java.lang.String msg)
@Deprecated public static void info(java.lang.String msg, java.lang.Object arg)
@Deprecated public static void info(java.lang.String msg, java.lang.Object arg0, java.lang.Object arg1)
@Deprecated public static boolean isDebugEnabled()
@Deprecated public static void warn(java.lang.String msg)
@Deprecated public static void warn(java.lang.String msg, java.lang.Object arg)
@Deprecated public static void warn(java.lang.String msg, java.lang.Object arg0, java.lang.Object arg1)
@Deprecated public static void warn(java.lang.String msg, java.lang.Throwable th)
@Deprecated public static void warn(java.lang.Throwable th)
public static Logger getLogger(java.lang.Class<?> clazz)
clazz
- the class to base the Logger name off ofpublic static Logger getLogger(java.lang.String name)
name
- the Logger nameCopyright © 2017. All Rights Reserved.