There's a lot of open issues
LoggableActivity is a powerful gem for Ruby on Rails that provides seamless user activity logging prepared for GDPR compliance and supporting record relations. It allows you to effortlessly keep track of user actions within your application, capturing who did what and when, even with related records included in the logs. With LoggableActivity, you can maintain the privacy of sensitive information in your logs, making it a perfect solution for applications that require robust audit trails while adhering to strict data protection regulations.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 6.4, >= 6.4.6
~> 1.60, >= 1.60.2
~> 1.4.2
~> 6.1, >= 6.1.1

Runtime

~> 7.1.3
~> 7.1.2
~> 4.1, >= 4.1.1
 Project Readme

Loggable Activity 🌟

Secure protect data and log how it is handled

  • Keep an activity log of how data in the db are handled.
  • Protect and secure the privacy of data stored in Activity Logs
  • Prepare for General Data Protection Regulation (GDPR) compliance.
  • Handles activities that involves more than one table in the DB.
  • Encrypt data stored in the activity log
  • Support binary_ids

Important!

This project is under development and not ready for production. There might be breaking changes, so please consult the CHANGELOG.md

What it is not

  • An error logging system
  • A paper trails system with rollback.
  • A backup system

Applications

Most organizations needs to keep a log of how users interact with data stored in the DB

  • Finance
  • Healthcare
  • Sales and Support

Super simplified example from the healthcare.

  • Each patient has a journal, that is updated on a regular basis.
  • Supervisor needs to follow the journal, how was it updated, who read it, did it get deleted.
  • Security personnel needs to know how the journal is handled, who did what when.
  • Patients has the right to know how their journal is handled and that their data will be removed when required.

Beside the journal in the db, an activity log is kept so it is possible to track how the journal is used.
At some point in time the patients data from the DB and the activity log has to be removed according to GDPR.

Getting started

please read the GETTING-STARTED.md guide

Contribute

👉 Join the Slack channel here: LoggableActivity Slack Workspace
👉 Want to play around with an online version: Show Demo
We value each contribution and believe in the power of community. Looking forward to seeing you there!

Test

We embrace the philosophy of black-box testing, where we focus on the input and output of the public interface without worrying about internal implementation details.
This approach aligns with the principle of testing behavior rather than implementation.