org.apache.log.output
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, 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(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.