Package org.wildfly.security.audit

Audit logging related resources. Audit logging registers with the SecurityDomain by registering a Consumer to receive the emitted SecurityEvents. The audit logging framework is comprised of three core components.
  1. Priority Mapper (Function<SecurityEvent, EventPriority>)
  2. Event Formatter (Function<SecurityEvent, String>)
  3. Audit Endpoint (ExceptionBiConsumer<EventPriority, String, IOException>)
The priority mapper takes an incoming security event and maps it to one of nine priority levels including a level 'OFF' to cause the event to be immediately discarded. The event formatter takes a security event and converts it to a formatted String ready to be recorded. The audit endpoint is the final component and takes the resulting priority and formatted String to be logged according to the endpoint's configuration.
Author:
Darran Lofthouse