public class Log extends 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
Logger.ignore(Throwable) methods produce any output in the Logger s |
static String |
__logClass
The
Logger implementation class name |
protected static Properties |
__props
Logging Configuration Properties
|
static String |
EXCEPTION |
static String |
IGNORED |
Constructor and Description |
---|
Log() |
Modifier and Type | Method and Description |
---|---|
static Logger |
getLog() |
static Logger |
getLogger(Class<?> clazz)
Obtain a named Logger based on the fully qualified class name.
|
static Logger |
getLogger(String name)
Obtain a named Logger or the default Logger if null is passed.
|
static Map<String,Logger> |
getLoggers()
Get a map of all configured
Logger instances. |
static Logger |
getRootLogger()
Get the root logger.
|
static void |
initialized() |
static void |
setLog(Logger log) |
static void |
setLogToParent(String name)
Set Log to parent Logger.
|
public static final String EXCEPTION
public static final String IGNORED
protected static final Properties __props
public static boolean __ignored
Logger.ignore(Throwable)
methods produce any output in the Logger
spublic static void initialized()
public static Logger getLog()
public static void setLog(Logger log)
public static Logger getRootLogger()
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 Logger getLogger(Class<?> clazz)
clazz
- the class to base the Logger name off ofpublic static Logger getLogger(String name)
name
- the Logger nameCopyright © 1995-2015 Webtide. All Rights Reserved.