ErrorAware
, LogTarget
, Closeable
public class ServletOutputLogTarget extends AbstractOutputTarget
Modifier and Type | Field | Description |
---|---|---|
private ServletContext |
m_context |
Constructor | Description |
---|---|
ServletOutputLogTarget(ServletContext context) |
Constructor.
|
ServletOutputLogTarget(ServletContext context,
Formatter formatter) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Shutdown target.
|
protected void |
write(java.lang.String message) |
Logs message to servlet context log file
|
doProcessEvent, getFormatter, open
getErrorHandler, isOpen, processEvent, setErrorHandler
private 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(java.lang.String message)
write
in class AbstractOutputTarget
message
- message to log to servlet context log file.public void close()
close
in interface Closeable
close
in class AbstractOutputTarget
Copyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.