com.sun.idm.logging.audit
Class FilePublisher
java.lang.Object
com.sun.idm.logging.audit.AbstractAuditLogPublisher
com.sun.idm.logging.audit.FilePublisher
- All Implemented Interfaces:
- AuditLogPublisher, LogPublisher
- public class FilePublisher
- extends com.sun.idm.logging.audit.AbstractAuditLogPublisher
A sample audit publisher that appends audit messages into a flat file.
The handler must have a formatter assigned, otherwise no output is
generated.
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 |
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
CONFIGURATION_OPTIONS
public static final java.util.List CONFIGURATION_OPTIONS
FilePublisher
public FilePublisher()
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
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.
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 publishhandler
- - 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.