Package com.ibm.fhir.audit.logging.api
Interface AuditLogService
-
- All Known Implementing Classes:
DisabledAuditLogService
,WhcAuditCadfLogService
public interface AuditLogService
Defines the internal FHIR Server APIs for audit logging
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
initialize(PropertyGroup auditLogProperties)
Performs any required audit log service initialization using the passed Properties file.boolean
isEnabled()
void
logEntry(AuditLogEntry logEntry)
Persists the passed audit log entry in a location determined by the log service.
-
-
-
Method Detail
-
logEntry
void logEntry(AuditLogEntry logEntry) throws Exception
Persists the passed audit log entry in a location determined by the log service.- Parameters:
logEntry
- - The audit log entry to be saved.- Throws:
Exception
-
isEnabled
boolean isEnabled()
- Returns:
- true if the audit log service is enabled; false if not enabled.
-
initialize
void initialize(PropertyGroup auditLogProperties) throws Exception
Performs any required audit log service initialization using the passed Properties file.- Parameters:
auditLogProperties
- - Contains audit log related properties which are configured in fhir-server-config.json.- Throws:
Exception
- - Any non-recoverable exception thrown during audit log service initialization.
-
-