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() |
Modifier and Type | Method and Description |
---|---|
boolean |
enabled() |
void |
log(AuditLogEntry logMessage)
Logs AuditLogEntry.
|
void |
stop()
Stop and cleanup any resources of IAuditLogger implementations.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
path
public boolean enabled()
enabled
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-2019 The Apache Software Foundation