Sha256: db57468e7c6ee227d63f9ff72743ba5640017795fa2469d7e77cf3594ed33e2e

Contents?: true

Size: 585 Bytes

Versions: 3

Compression:

Stored size: 585 Bytes

Contents

module Shamu
  module Auditing

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

      # 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: #{ filter_changes( transaction.changes ) }" # rubocop:disable Metrics/LineLength
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shamu-0.0.19 lib/shamu/auditing/logging_auditing_service.rb
shamu-0.0.18 lib/shamu/auditing/logging_auditing_service.rb
shamu-0.0.17 lib/shamu/auditing/logging_auditing_service.rb