|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.util.ServletLoggingOutput
public class ServletLoggingOutput
An implementation of LoggingOutput that sends stuff to the Servlet.log stream.
Field Summary |
---|
Fields inherited from interface org.directwebremoting.util.LoggingOutput |
---|
LEVEL_DEBUG, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN |
Constructor Summary | |
---|---|
ServletLoggingOutput()
|
Method Summary | |
---|---|
void |
debug(java.lang.String message)
Logger a debug message |
void |
error(java.lang.String message)
Logger an error message |
void |
error(java.lang.String message,
java.lang.Throwable th)
Logger an error message |
void |
fatal(java.lang.String message)
Logger a fatal error message |
void |
fatal(java.lang.String message,
java.lang.Throwable th)
Logger a fatal error message |
static int |
getLevel()
|
void |
info(java.lang.String message)
Logger an info message |
boolean |
isDebugEnabled()
Save CPU time when we are not debugging |
static void |
setExecutionContext(javax.servlet.http.HttpServlet servlet)
Associate a servlet with this thread for logging purposes. |
static void |
setLevel(int level)
|
static void |
setLevel(java.lang.String logLevel)
String version of setLevel. |
static void |
unsetExecutionContext()
Remove the servlet from this thread for logging purposes |
void |
warn(java.lang.String message)
Logger a warning message |
void |
warn(java.lang.String message,
java.lang.Throwable th)
Logger a warning message |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletLoggingOutput()
Method Detail |
---|
public void debug(java.lang.String message)
LoggingOutput
debug
in interface LoggingOutput
message
- The text to logpublic void info(java.lang.String message)
LoggingOutput
info
in interface LoggingOutput
message
- The text to logpublic void warn(java.lang.String message)
LoggingOutput
warn
in interface LoggingOutput
message
- The text to logpublic void warn(java.lang.String message, java.lang.Throwable th)
LoggingOutput
warn
in interface LoggingOutput
message
- The text to logth
- An optional stack tracepublic void error(java.lang.String message)
LoggingOutput
error
in interface LoggingOutput
message
- The text to logpublic void error(java.lang.String message, java.lang.Throwable th)
LoggingOutput
error
in interface LoggingOutput
message
- The text to logth
- An optional stack tracepublic void fatal(java.lang.String message)
LoggingOutput
fatal
in interface LoggingOutput
message
- The text to logpublic void fatal(java.lang.String message, java.lang.Throwable th)
LoggingOutput
fatal
in interface LoggingOutput
message
- The text to logth
- An optional stack tracepublic static void setExecutionContext(javax.servlet.http.HttpServlet servlet)
servlet
- The servlet to use for logging in this threadpublic static void unsetExecutionContext()
public static void setLevel(java.lang.String logLevel)
logLevel
- One of FATAL, ERROR, WARN, INFO, DEBUGpublic boolean isDebugEnabled()
LoggingOutput
isDebugEnabled
in interface LoggingOutput
public static void setLevel(int level)
level
- The logging level to set.public static int getLevel()
|
Copyright ? 2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |