org.jscience.util.logging
Interface LogExceptionHandler


public interface LogExceptionHandler

A LogExceptionHandler is used to control the behavior of a Logger in regards to occuring LogException events.

See Also:
LogException, Logger.setExceptionHandler(LogExceptionHandler)

Field Summary
static LogExceptionHandler EXCEPTION_IGNORER
          used to simply ignore exceptions thrown by a logger
 
Method Summary
 void handleLogException(Logger logger, LogException ex, LogWriter writer)
          is called when a logger encounteres a LogException while the handler logs an entry.
 

Field Detail

EXCEPTION_IGNORER

static final LogExceptionHandler EXCEPTION_IGNORER
used to simply ignore exceptions thrown by a logger

See Also:
Logger.ignoreLogExceptions()
Method Detail

handleLogException

void handleLogException(Logger logger,
                        LogException ex,
                        LogWriter writer)
                        throws LogException
is called when a logger encounteres a LogException while the handler logs an entry. This method can control whether the exception is propagated back to the Logger or ignored by the application.

Throws:
LogException
See Also:
Logger.setExceptionHandler(LogExceptionHandler)