|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.resilientedge.util.logger.AbstractHandler
This abstract class provides the core Handler attributes and behavior.
| Constructor Summary | |
AbstractHandler()
|
|
| Method Summary | |
abstract Formatter |
getDefaultFormatter()
The implementation of this method returns the default Formatter for the handler. |
Formatter |
getFormatter()
Get the Handler's Formatter. |
protected java.lang.String |
lookupConfig(java.lang.String key)
This method returns the configuraton String value from the Application Preferences. |
void |
publish(LogRecord logRecord)
This method does the real work for a handler. |
void |
setFormatter(Formatter formatter)
Set the Handler's Formatter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractHandler()
| Method Detail |
public void setFormatter(Formatter formatter)
setFormatter in interface Handlerformatter - The Handler's Formatter.public Formatter getFormatter()
public abstract Formatter getDefaultFormatter()
public void publish(LogRecord logRecord)
throws LoggerException
Note: When a subclass overides this method, the very first line should always be super.publish(logRecord) . This will give the super class an opportunity to perform any required higher level behavior.
publish in interface HandlerlogRecord - contains the log messageLoggerException - Thrown if exception occurs during publishing.
This may be a nested exception.protected java.lang.String lookupConfig(java.lang.String key)
key - the text string to use as a lookup key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||