tag:www.railsillustrated.com,2009:/class-based-logger-in-rails/feedComments on „A Simple Class Based Logger in Rails“ Rails Ill.www.railsillustrated.com/class-based-logger-in-rails.html2010-01-06T14:26:11Ztag:www.railsillustrated.com,2009-03-03:/class-based-logger-in-rails/comments/12627319382010-01-05T22:52:18ZStephan Wehner said on January 5 2010
It's nice. Surely there is no dependency on ActiveRecord? What do you think about supporting log rotation?
* log/email_20100105.log
* log/payments_20100105.log
Stephan Stephan Wehnerhttp://loggingit.comtag:www.railsillustrated.com,2009-03-03:/class-based-logger-in-rails/comments/12627879712010-01-06T14:26:11ZErik said on January 6 2010
**Stephan**: You are correct, there is no dependency on ActiveRecord although `RAILS_ROOT` is used to determine the relative path of the log files.
It is easy to modify to support log rotations since the log file is written using the [Ruby Logger class](http://ruby-doc.org/core/classes/Logger.html) which supports rotating logs. Erik