| java.lang.Object org.jivesoftware.util.log.output.AbstractTarget
All known Subclasses: org.jivesoftware.util.log.output.AbstractOutputTarget, org.jivesoftware.util.log.output.AsyncLogTarget,
Method Summary | |
public synchronized void | close() Shutdown target. | abstract protected void | doProcessEvent(LogEvent event) Process a log event, via formatting and outputting it. | final protected void | error(String message, Throwable throwable) Helper method to send error messages to error handler. | final protected ErrorHandler | getErrorHandler() Helper method to retrieve ErrorHandler for subclasses. | protected synchronized boolean | isOpen() | protected synchronized void | open() Startup log session. | public synchronized void | processEvent(LogEvent event) Process a log event, via formatting and outputting it. | public synchronized void | setErrorHandler(ErrorHandler errorHandler) Provide component with ErrorHandler. |
close | public synchronized void close()(Code) | | Shutdown target.
Attempting to send to target after close() will cause errors to be logged.
|
doProcessEvent | abstract protected void doProcessEvent(LogEvent event) throws Exception(Code) | | Process a log event, via formatting and outputting it.
This should be overidden by subclasses.
Parameters: event - the log event |
error | final protected void error(String message, Throwable throwable)(Code) | | Helper method to send error messages to error handler.
Parameters: message - the error message Parameters: throwable - the exception if any |
getErrorHandler | final protected ErrorHandler getErrorHandler()(Code) | | Helper method to retrieve ErrorHandler for subclasses.
the ErrorHandler |
isOpen | protected synchronized boolean isOpen()(Code) | | |
open | protected synchronized void open()(Code) | | Startup log session.
|
processEvent | public synchronized void processEvent(LogEvent event)(Code) | | Process a log event, via formatting and outputting it.
Parameters: event - the log event |
setErrorHandler | public synchronized void setErrorHandler(ErrorHandler errorHandler)(Code) | | Provide component with ErrorHandler.
Parameters: errorHandler - the errorHandler |
|
|