Skip to content

ardianys/auditlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages