A simple Rails plugin to create a separate log file for an ActiveRecord class
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
tasks
test
MIT-LICENSE
README.rdoc
Rakefile
init.rb
install.rb
uninstall.rb

README.rdoc

ClassBasedLogger

A simple plugin to produce a custom log file for an ActiveRecord class.

Installation

./script/plugin install git://github.com/eandrejko/class_logger.git

Example

class Email has_own_logger end

To use the logger

email = Email.create email.log(“sending”) or log with the class

Email.class_logger(“connecting to server”)

To specify the directory to store the log files in use

class Email has_own_logger :in => 'log/emails' end

Copyright © 2009 Erik Andrejko, released under the MIT license