public interface ManagedAuditLogger extends AuditLogger
AuditLogger implementations.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ManagedAuditLogger.AuditLogHandlerUpdater
The audit log handler updater.
|
AuditLogger.StatusNO_OP_LOGGER| Modifier and Type | Method and Description |
|---|---|
void |
addFormatter(AuditLogItemFormatter formatter)
Add a formatter
|
void |
bootDone()
Callback for the controller to call when the controller has been booted
|
ManagedAuditLogger |
createNewConfiguration(boolean manualCommit)
Create another audit logger configuration, e.g.
|
boolean |
getHandlerDisabledDueToFailure(String name)
Get whether a handler was disabled due to failures
|
int |
getHandlerFailureCount(String name)
Get the current failure count of a handler
|
JsonAuditLogItemFormatter |
getJsonFormatter(String name)
Gets a formatter by its name
|
AuditLogger.Status |
getLoggerStatus()
Gets the status of the audit logger
|
ManagedAuditLogger.AuditLogHandlerUpdater |
getUpdater()
Gets the handler updater used to schedule updates to the handlers
|
boolean |
isLogBoot()
Get whether this audit logger logs operations on boot
|
boolean |
isLogReadOnly()
Get whether this audit logger logs read-only operations
|
default List<org.jboss.dmr.ModelNode> |
listLastEntries(String name)
Gets the last log entries
|
void |
recycleHandler(String name)
Recycles a handler.
|
void |
removeFormatter(String name)
Remove a formatter
|
void |
setLogBoot(boolean logBoot)
Set whether to log operations on boot
|
void |
setLoggerStatus(AuditLogger.Status newStatus)
Sets the status of the audit logger
|
void |
setLogReadOnly(boolean logReadOnly)
Set whether to log read-only operations
|
void |
startBoot()
Callback for the controller to call before the controller is booted
|
void |
updateHandlerFormatter(String name,
String formatterName)
Update the handler formatter.
|
void |
updateHandlerMaxFailureCount(String name,
int count)
Update the handler max failure count.
|
void |
updateInMemoryHandlerMaxHistory(String name,
int maxHistory)
Update the handler history size.
|
void |
updateSyslogHandlerAppName(String name,
String appName)
Update the handler app-name.
|
void |
updateSyslogHandlerFacility(String name,
SyslogAuditLogHandler.Facility facility)
Update the syslog handler facility.
|
void |
updateSyslogHandlerReconnectTimeout(String name,
int reconnectTimeout)
Update the handler reconnect timeout.
|
log, logJmxMethodAccessboolean isLogReadOnly()
void setLogReadOnly(boolean logReadOnly)
logReadOnly - wheter to log read-only operationsboolean isLogBoot()
void setLogBoot(boolean logBoot)
logBoot - whether to log operations on bootAuditLogger.Status getLoggerStatus()
void setLoggerStatus(AuditLogger.Status newStatus)
newStatus - the statusManagedAuditLogger.AuditLogHandlerUpdater getUpdater()
void recycleHandler(String name)
name - the name of the handlerManagedAuditLogger createNewConfiguration(boolean manualCommit)
manualCommit - if true the caller is responsible for applying the changes themselves, if false the changes will be committed after the next log records has been writtenvoid addFormatter(AuditLogItemFormatter formatter)
formatter - the formattervoid updateHandlerFormatter(String name, String formatterName)
name - the name of the handlerformatterName - the name of the formattervoid updateHandlerMaxFailureCount(String name, int count)
name - the name of the handlercount - the max failure countvoid updateSyslogHandlerFacility(String name, SyslogAuditLogHandler.Facility facility)
name - the name of the syslog handlerfacility - the facilityvoid updateSyslogHandlerAppName(String name, String appName)
name - the name of the handlerappName - the app namevoid updateSyslogHandlerReconnectTimeout(String name, int reconnectTimeout)
name - the name of the handlerreconnectTimeout - the app namevoid updateInMemoryHandlerMaxHistory(String name, int maxHistory)
name - the name of the handlermaxHistory - the history size of the handlervoid removeFormatter(String name)
name - the formatter nameint getHandlerFailureCount(String name)
name - the name of the handlerboolean getHandlerDisabledDueToFailure(String name)
name - the name of the handlerJsonAuditLogItemFormatter getJsonFormatter(String name)
name - the name of the formatterdefault List<org.jboss.dmr.ModelNode> listLastEntries(String name)
name - the name of the handlervoid startBoot()
void bootDone()
Copyright © 2019 JBoss by Red Hat. All rights reserved.