| java.lang.Object org.mortbay.log.Log
Log | public class Log (Code) | | 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.mortbay.log". Otherwise the logs
are directed to stderr.
If the system property VERBOSE is set, then ignored exceptions are logged in detail.
|
Method Summary | |
public 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 Logger | getLog() | public static Logger | getLogger(String name) Obtain a named Logger. | public static void | ignore(Throwable th) Ignore an exception unless trace is enabled. | public 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 | setLog(Logger log) | 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) |
NOT_IMPLEMENTED | final public static String NOT_IMPLEMENTED(Code) | | |
getLogger | public static Logger getLogger(String name)(Code) | | Obtain a named Logger.
Obtain a named Logger or the default Logger if null is passed.
|
ignore | public static void ignore(Throwable th)(Code) | | Ignore an exception unless trace is enabled.
This works around the problem that log4j does not support the trace level.
|
isDebugEnabled | public static boolean isDebugEnabled()(Code) | | |
|
|