| java.lang.Object org.directwebremoting.util.Logger
Logger | final public class Logger (Code) | | A very quick and dirty logging implementation.
java.util.logging is out because we work with JDK 1.3 and we
don't want to force users to import log4j or commons-logging.
Don't use this outside of DWR - it's just a quick hack to keep things simple.
author: Joe Walker [joe at getahead dot ltd dot uk] |
debug | public void debug(String message)(Code) | | Logger a debug message
Parameters: message - The text to log |
error | public void error(String message)(Code) | | Logger an error message
Parameters: message - The text to log |
error | public void error(String message, Throwable th)(Code) | | Logger an error message
Parameters: message - The text to log Parameters: th - An optional stack trace |
fatal | public void fatal(String message)(Code) | | Logger a fatal error message
Parameters: message - The text to log |
fatal | public void fatal(String message, Throwable th)(Code) | | Logger a fatal error message
Parameters: message - The text to log Parameters: th - An optional stack trace |
getLogger | public static Logger getLogger(Class> base)(Code) | | Parameters: base - The class to log against A new logger |
info | public void info(String message)(Code) | | Logger an info message
Parameters: message - The text to log |
isDebugEnabled | public boolean isDebugEnabled()(Code) | | Save CPU time when we are not debugging
true if debugging is enabled |
setDefaultImplementation | public static void setDefaultImplementation(Class<? extends LoggingOutput> defaultImplementation)(Code) | | Parameters: defaultImplementation - the defaultImplementation to set |
warn | public void warn(String message)(Code) | | Logger a warning message
Parameters: message - The text to log |
warn | public void warn(String message, Throwable th)(Code) | | Logger a warning message
Parameters: message - The text to log Parameters: th - An optional stack trace |
|
|