com.sun.idm.logging
Interface LogPublisher

All Known Subinterfaces:
AuditLogPublisher
All Known Implementing Classes:
com.sun.idm.logging.audit.AbstractAuditLogPublisher

public interface LogPublisher

A LogPublisher is responsible for distributing logged messages from the Logger to a logging endpoint.


Field Summary
static java.lang.String code_id
           
 
Method Summary
 void publish(java.util.Map record, LoggingErrorHandler handler)
          Sends the log message to the logging endpoint managed by the LogPublisher.
 void shutdown()
          Releases any resources held by the LogPublisher.
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Method Detail

publish

public void publish(java.util.Map record,
                    LoggingErrorHandler handler)
Sends the log message to the logging endpoint managed by the LogPublisher. Calling this method after #shutdown() has been called is an error.

Parameters:
record - - the log message to publish
handler - - the error handler to notify if an exception occurs while publishing the record

shutdown

public void shutdown()
Releases any resources held by the LogPublisher.