Forum: Ruby on Rails Default Logger -> Database log

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
0934b90329c3b5812f74e594d0768cf5?d=identicon&s=25 luc_boudreau (Guest)
on 2005-12-09 20:14
(Received via mailing list)
Hi listers,

I'm trying to save my log entries in the database using the following
technique :

I've added the following code to the Environment.rb :



rescue StandardError




      "Rails Error: Unable to access log database. Please ensure that
your database settings are exact " +
      "The log level has been raised to WARN and the output directed to
STDERR until the problem is fixed."



[ActiveRecord, ActionController, ActionMailer].each { |mod|
mod::Base.logger ||= RAILS_DEFAULT_LOGGER }


But the log doesn't get to the database and still is added to the log
files... what's wrong ???!!

Luc Boudreau
SID - Université du Québec
This topic is locked and can not be replied to.