com.resilientedge.util.logger
Interface Handler

All Known Implementing Classes:
AbstractHandler

public interface Handler

A Handler object recieves a log record from a Logger. The Handler formats and then exports the log message. The Handler might, for example, generate log messages for Weblogic's log, or an email, or a file, or a database, etc... The burden of formatting the message is separated from the handler through the use of a Formatter. A Handler typically has a Formatter associated with it, which performs the formatting of the log message.

Author:
odh

Method Summary
 void publish(LogRecord logRecord)
          The implementation of this method should process the log record and generate the logging of the message.
 void setFormatter(Formatter formatter)
          The implementation of this method should assign a Formatter to the Handler.
 

Method Detail

setFormatter

public void setFormatter(Formatter formatter)
The implementation of this method should assign a Formatter to the Handler.
Parameters:
formatter - the Handler's formatter.

publish

public void publish(LogRecord logRecord)
             throws LoggerException
The implementation of this method should process the log record and generate the logging of the message.
Parameters:
logRecord - contains the message information to process and log.
Throws:
LoggerException - thrown if an exception occurs during publishing that can not be immediately handled.


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.