|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ltd.getahead.dwr.util.ServletLoggingOutput
public class ServletLoggingOutput
An implementation of LoggingOutput that sends stuff to the Servlet.log stream.
| Field Summary | |
|---|---|
static int |
LEVEL_DEBUG
Testing information. |
static int |
LEVEL_ERROR
Something has gone wrong with the current request. |
static int |
LEVEL_FATAL
Something has gone very badly wrong. |
static int |
LEVEL_INFO
An event happened that we might need to keep track of. |
static int |
LEVEL_WARN
Something has gone wrong, but it could well be the users fault. |
| 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 |
| Field Detail |
|---|
public static final int LEVEL_FATAL
public static final int LEVEL_ERROR
public static final int LEVEL_WARN
public static final int LEVEL_INFO
public static final int LEVEL_DEBUG
| Constructor Detail |
|---|
public ServletLoggingOutput()
| Method Detail |
|---|
public void debug(java.lang.String message)
LoggingOutput
debug in interface LoggingOutputmessage - The text to logpublic void info(java.lang.String message)
LoggingOutput
info in interface LoggingOutputmessage - The text to logpublic void warn(java.lang.String message)
LoggingOutput
warn in interface LoggingOutputmessage - The text to log
public void warn(java.lang.String message,
java.lang.Throwable th)
LoggingOutput
warn in interface LoggingOutputmessage - The text to logth - An optional stack tracepublic void error(java.lang.String message)
LoggingOutput
error in interface LoggingOutputmessage - The text to log
public void error(java.lang.String message,
java.lang.Throwable th)
LoggingOutput
error in interface LoggingOutputmessage - The text to logth - An optional stack tracepublic void fatal(java.lang.String message)
LoggingOutput
fatal in interface LoggingOutputmessage - The text to log
public void fatal(java.lang.String message,
java.lang.Throwable th)
LoggingOutput
fatal in interface LoggingOutputmessage - 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 LoggingOutputpublic 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 | |||||||||