Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages