Sha256: 44722dea8d400048b1e822b1e081af73668266fe548ae38a6614acd8f3c0fd33

Contents?: true

Size: 569 Bytes

Versions: 10

Compression:

Stored size: 569 Bytes

Contents

module Shamu
  module Auditing

    # Writes audit logs to the {Shamu::Logger}.
    class LoggingAuditingService < Services::Service

      # Records an auditable event in persistent storage.
      # @param [Transaction] transaction
      # @return [AuditRecord] the persisted record.
      def commit( transaction )
        logger.unknown "AUDIT TRANSACTION action: #{ transaction.action } entity: #{ transaction.entity_path } by user: #{ transaction.user_id_chain } changes: #{ transaction.changes }" # rubocop:disable Metrics/LineLength
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shamu-0.0.14 lib/shamu/auditing/logging_auditing_service.rb
shamu-0.0.13 lib/shamu/auditing/logging_auditing_service.rb
shamu-0.0.11 lib/shamu/auditing/logging_auditing_service.rb
shamu-0.0.9 lib/shamu/auditing/logging_auditing_service.rb
shamu-0.0.8 lib/shamu/auditing/logging_auditing_service.rb
shamu-0.0.7 lib/shamu/auditing/logging_auditing_service.rb
shamu-0.0.5 lib/shamu/auditing/logging_auditing_service.rb
shamu-0.0.4 lib/shamu/auditing/logging_auditing_service.rb
shamu-0.0.3 lib/shamu/auditing/logging_auditing_service.rb
shamu-0.0.2 lib/shamu/auditing/logging_auditing_service.rb