Interface AuditEventLogger

All Known Subinterfaces:
AuditEventLogFormat1Interface
All Known Implementing Classes:
AuditEventLogFormat2Logger, AuditEventLogger.Null

public interface AuditEventLogger
An interface for logging AuditEvents.

This interface is a simplification of AuditEventLogFormat1Interface (which is strongly coupled to the DB module). This allows us to log audit events from contexts which don't depend on the DB.

  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  AuditEventLogger.Null
    An implementation of AuditEventLogger that does nothing.
  • Method Summary

    Modifier and Type Method Description
    void event​(AuditEvent event)
    Log the given AuditEvent.
    default void event​(AuditEventBuilder eventBuilder)
    Equivalent to event(eventBuilder.build()).
  • Method Details

    • event

      default void event​(AuditEventBuilder eventBuilder)
      Equivalent to event(eventBuilder.build()).

      This method would be better named "log", but IntradayLoggerFactory gets confused.

    • event

      void event​(AuditEvent event)
      Log the given AuditEvent.