Class: Synapse::Auditing::AuditLogger Abstract
- Inherits:
-
Object
- Object
- Synapse::Auditing::AuditLogger
- Defined in:
- lib/synapse/auditing/audit_logger.rb
Overview
This class is abstract.
Represents a mechanism for auditing commands and the events produced by their execution
Instance Method Summary collapse
-
#on_failure(command, exception, events) ⇒ undefined
abstract
Called when a command execution results in an exception being raised.
-
#on_success(command, return_value, events) ⇒ undefined
abstract
Called when a command execution was finished successfully.
Instance Method Details
#on_failure(command, exception, events) ⇒ undefined
This method is abstract.
Called when a command execution results in an exception being raised
The list of events may not be empty; in this case, some events could have been published to the event bus and/or appended to the event store.
25 |
# File 'lib/synapse/auditing/audit_logger.rb', line 25 def on_failure(command, exception, events); end |
#on_success(command, return_value, events) ⇒ undefined
This method is abstract.
Called when a command execution was finished successfully
13 |
# File 'lib/synapse/auditing/audit_logger.rb', line 13 def on_success(command, return_value, events); end |