No commit activity in last 3 years
No release in over 3 years
dump errors on filesystem and notify developers, map different errors to specific pages
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.2.0
~> 1.4
~> 10.0
~> 2.11

Runtime

~> 0.4.2
 Project Readme

Rails Error Dumper

the main idea here is notify the developers on error but in a way to protect privacy of the users of the system. to do so ALL data need to remain on the server and they need to be deleted after period of time.

  • first to dump as much as possible onto the filesystem of the server when an error occurs, i.e. the environment, the request, the response, the session, etc
  • notify the developers
  • delete expired error dumps

the next idea is to collect all possible rails exception and map them to three error pages and pass on a message. for each exception you can decide whether an error dump is needed or not.

install

in Gemfile add gem ‘ixtlan-error-handler’

for the configuration add for example in config/initializers/error_handler.rb

config.error_dumper.dump_dir = Rails.root + "/log/errors" # default: log/errors
config.error_dumper.email_from = "no-reply@example.com"
config.error_dumper.email_to = "developer1@example.com,developer2@example.com"
config.error_dumper.keep_dumps = 30 # days
config.skip_rescue_module = true # do not include the predefined Rescue 

relation to ixtlan gem

the ixtlan gem provides a setup generator which adds configuration examples for this gem in config/initializer/ixtlan.rb (the dynamic configuration is part of the ixtlan gem and it is just easier to keep that inside that gem !!!)

relation to ixtlan-audit gem

if that gem is present and loaded than any error will be log with the help of Ixtlan::Audit::UserLogger