com.sun.idm.logging.audit
Class ConsolePublisher

java.lang.Object
  extended bycom.sun.idm.logging.audit.AbstractAuditLogPublisher
      extended bycom.sun.idm.logging.audit.ConsolePublisher
All Implemented Interfaces:
AuditLogPublisher, LogPublisher

public class ConsolePublisher
extends com.sun.idm.logging.audit.AbstractAuditLogPublisher

Delivers audit events to the standard error. This handler must have a formatter assigned.


Field Summary
static java.lang.String CLASS
           
static java.lang.String code_id
           
static java.util.List CONFIGURATION_OPTIONS
           
static Trace TRACE
           
 
Constructor Summary
ConsolePublisher()
           
 
Method Summary
 void configure(java.util.Map options)
          Configures the publisher with a set of options.
 java.util.List getConfigurationOptions()
           
 java.lang.String getDisplayName()
           
 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.
 
Methods inherited from class com.sun.idm.logging.audit.AbstractAuditLogPublisher
getConfiguration, getFormatter, handleError, setFormatter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

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

CLASS

public static final java.lang.String CLASS
See Also:
Constant Field Values

TRACE

public static final Trace TRACE

CONFIGURATION_OPTIONS

public static final java.util.List CONFIGURATION_OPTIONS
Constructor Detail

ConsolePublisher

public ConsolePublisher()
Method Detail

getConfigurationOptions

public java.util.List getConfigurationOptions()
Returns:
list of configuration options available for the publisher implementation Note that configuration options does not return the settings, only the available attributes.

configure

public void configure(java.util.Map options)
               throws WavesetException
Description copied from interface: AuditLogPublisher
Configures the publisher with a set of options.

Throws:
WavesetException

getDisplayName

public java.lang.String getDisplayName()

publish

public void publish(java.util.Map record,
                    LoggingErrorHandler handler)
Description copied from interface: LogPublisher
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()
Description copied from interface: LogPublisher
Releases any resources held by the LogPublisher.