public class ServletOutputLogTarget extends AbstractOutputTarget
| Modifier and Type | Field and Description |
|---|---|
private ServletContext |
m_context |
| Constructor and Description |
|---|
ServletOutputLogTarget(ServletContext context)
Constructor.
|
ServletOutputLogTarget(ServletContext context,
Formatter formatter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shutdown target.
|
protected void |
write(String message)
Logs message to servlet context log file
|
doProcessEvent, getFormatter, opengetErrorHandler, isOpen, processEvent, setErrorHandlerprivate ServletContext m_context
public ServletOutputLogTarget(ServletContext context, Formatter formatter)
context - ServletContext to use for logging.public ServletOutputLogTarget(ServletContext context)
context - ServletContext to use for logging.protected void write(String message)
write in class AbstractOutputTargetmessage - message to log to servlet context log file.public void close()
close in interface Closeableclose in class AbstractOutputTargetCopyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.