0.0
No commit activity in last 3 years
No release in over 3 years
Turn your log files into exceptions. The contents are used as a backtrace.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Exceptional_Log

A Ruby gem to turn your log files into exceptions.

Installation

gem install Exceptional_Log

Usage

require "Exceptional_Log"

e = Exceptional_Log("/my_apps/logs/thin_a.log")

e.class      # --> Thin_A 
e.message    # --> '/my_apps/logs/thin_a.log'
e.backtrace  # --> Array
e.exception  # --> self
e.created_at # --> File.stat(file).atime
e.to_hash    # --> Hash[ :exception => ..., :message => ..., :created_at => ..., :backtrace => ... ]

Each exception is a subclass of Exceptional_Log and is named based on the basename of the file path.

Nginx/HTTP Error Logs

For NGINX error logs (not access logs), try looking at the Http_Error_Log.

Run Tests

git clone git@github.com:da99/Exceptional_Log.git
cd Exceptional_Log
bundle update
bundle exec bacon spec/lib/main.rb

"I hate writing."

If you know of existing software that makes the above redundant, please tell me. The last thing I want to do is maintain code.