Creates an audit log retaining up to capacity records.
capacity
AuditLog({Clock clock = const SystemClock(), this.capacity = 1000}) : _clock = clock;