|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.AppenderSkeleton
org.riotfamily.common.log.ServletContextAppender
public class ServletContextAppender
Log4J Appender implementation that logs messages by calling
ServletContext.log()
.
NOTE: Since the appender needs a reference to the ServletContext you must
either add the ServletContextAppenderListener
to your web.xml or
put a ServletContextAppenderConfigurer
into your ApplicationContext.
Field Summary | |
---|---|
protected static ServletContext |
servletContext
|
Fields inherited from class org.apache.log4j.AppenderSkeleton |
---|
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Constructor Summary | |
---|---|
ServletContextAppender()
|
Method Summary | |
---|---|
protected void |
append(org.apache.log4j.spi.LoggingEvent event)
|
void |
close()
|
boolean |
requiresLayout()
|
static void |
setContext(ServletContext context)
|
Methods inherited from class org.apache.log4j.AppenderSkeleton |
---|
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static ServletContext servletContext
Constructor Detail |
---|
public ServletContextAppender()
Method Detail |
---|
public static void setContext(ServletContext context)
protected void append(org.apache.log4j.spi.LoggingEvent event)
append
in class org.apache.log4j.AppenderSkeleton
public boolean requiresLayout()
public void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |