|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bristle.javalib.log.ServletContextLoggerTarget
public class ServletContextLoggerTarget
This class implements the Logger.LoggerTarget interface, writing log entries to a ServletContext (Web server log file).
Usage: - See the Logger class. Assumptions: Effects: - Writes log entries to the specified ServletContext. Anticipated Changes: Notes: Implementation Notes: Portability Issues: Revision History: $Log$
| Nested Class Summary | |
|---|---|
static class |
ServletContextLoggerTarget.Tester
Each class contains a Tester inner class with a main() for easier unit testing. |
| Constructor Summary | |
|---|---|
ServletContextLoggerTarget(ServletContext context)
Constructor. |
|
| Method Summary | |
|---|---|
ServletContext |
getServletContext()
Get the ServletContext that messages are currently being logged to. |
void |
log(Logger.Entry entry)
Log the log entry to the ServletContext. |
void |
setServletContext(ServletContext context)
Set the ServletContext to write log entries to. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletContextLoggerTarget(ServletContext context)
context - The ServletContext to write log entries to.| Method Detail |
|---|
public void setServletContext(ServletContext context)
context - The new ServletContext.public ServletContext getServletContext()
public void log(Logger.Entry entry)
log in interface Logger.LoggerTargetentry - The log entry to write to the log.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||