AuditLogger class
Central audit logging system
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
clearEvents(
) → void - Clear events (use with caution!)
-
configure(
AuditLoggerConfig config) → void - Configure audit logger
-
exportLogs(
{DateTime? startDate, DateTime? endDate, String? userId, AuditEventType? eventType}) → Future< String> - Export audit logs
-
getEventCount(
) → int - Get event count
-
getEvents(
{DateTime? startDate, DateTime? endDate, String? userId, AuditEventType? eventType}) → List< AuditEvent> - Get audit events
-
getLastPersistTime(
) → DateTime? - Get last persist time
-
loadEvents(
) → Future< void> - Load events from storage
-
logAction(
{required String actionType, String? userId, Map< String, dynamic> ? payload, Map<String, dynamic> ? metadata}) → Future<void> - Log action dispatched
-
logCustom(
{required String eventKey, dynamic data, String? userId, Map< String, dynamic> ? metadata}) → Future<void> - Log custom event
-
logDataAccess(
{required String resourceKey, required String userId, Map< String, dynamic> ? metadata}) → Future<void> - Log data access
-
logLogin(
{required String userId, String? userEmail, Map< String, dynamic> ? metadata}) → Future<void> - Log user login
-
logLogout(
{required String userId, Map< String, dynamic> ? metadata}) → Future<void> - Log user logout
-
logSecurityEvent(
{required String eventDescription, String? userId, Map< String, dynamic> ? metadata}) → Future<void> - Log security event
-
logStateChange(
{required String stateKey, required dynamic oldValue, required dynamic newValue, String? userId, String? userEmail, Map< String, dynamic> ? metadata}) → Future<void> - Log state change
-
verifyIntegrity(
) → bool - Verify audit log integrity