ardianys / auditlog

Log data changes in file instead in DB

Repository from Github https://github.comardianys/auditlogRepository from Github https://github.comardianys/auditlog

Audit LOG

Synopsis

Use to create an audit trail of field changes in a model, storing what was changed and who changed it in log file instead in DB

Setup

  1. Add to your Gemfile: gem 'auditlog', github: 'ardianys/auditlog'
  2. Install the gem bundle install

Model

class Thing < ActiveRecord::Base
  audit [:some_field, :some_other_field]
end

Usage

Thats it

LOG

$ tailf log/audit.log

You can stream your log file to ELK stack using Logbyte

About

Log data changes in file instead in DB

License:MIT License


Languages

Language:Ruby 100.0%