public class NoOpAuditLogger extends java.lang.Object implements IAuditLogger
IAuditLogger
to be used as a default audit logger when audit logging is disabled.Constructor and Description |
---|
NoOpAuditLogger(java.util.Map<java.lang.String,java.lang.String> params) |
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled() |
void |
log(AuditLogEntry logMessage)
Logs AuditLogEntry.
|
void |
stop()
Stop and cleanup any resources of IAuditLogger implementations.
|
public NoOpAuditLogger(java.util.Map<java.lang.String,java.lang.String> params)
public boolean isEnabled()
isEnabled
in interface IAuditLogger
public void log(AuditLogEntry logMessage)
IAuditLogger
IAuditLogger.stop()
,
hence implementations need to handle the race condition.log
in interface IAuditLogger
public void stop()
IAuditLogger
IAuditLogger.log(AuditLogEntry)
might be called after being stopped.stop
in interface IAuditLogger
Copyright © 2009-2022 The Apache Software Foundation