Package org.apache.cassandra.audit
Class FileAuditLogger
- java.lang.Object
-
- org.apache.cassandra.audit.FileAuditLogger
-
- All Implemented Interfaces:
IAuditLogger
public class FileAuditLogger extends java.lang.Object implements IAuditLogger
Synchronous, file-based audit logger; just uses the standard logging mechansim.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description FileAuditLogger(java.util.Map<java.lang.String,java.lang.String> params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEnabled()voidlog(AuditLogEntry auditLogEntry)Logs AuditLogEntry.voidstop()Stop and cleanup any resources of IAuditLogger implementations.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceIAuditLogger
-
log
public void log(AuditLogEntry auditLogEntry)
Description copied from interface:IAuditLoggerLogs AuditLogEntry. This method might be called afterIAuditLogger.stop(), hence implementations need to handle the race condition.- Specified by:
login interfaceIAuditLogger
-
stop
public void stop()
Description copied from interface:IAuditLoggerStop and cleanup any resources of IAuditLogger implementations. Please note thatIAuditLogger.log(AuditLogEntry)might be called after being stopped.- Specified by:
stopin interfaceIAuditLogger
-
-