Forum: Ruby on Rails error with log4r?

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.
chirag (Guest)
on 2007-07-02 22:40
(Received via mailing list)
I get the following 'undefined method' error with I use log4r (see
below). I verified that the gem installed properly. Any ideas?


NoMethodError in Raw data filesController#new

undefined method `outputters=' for #<Logger:0x4eb65b4>

RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace

#{RAILS_ROOT}/app/controllers/raw_data_files_controller.rb:54:in `new'

  def halo_log4r
    config = {
      "filename" => "fu.log",
      "maxsize" => 16000,
      "trunc" => true

    logger_fu = 'myLog'

    #alternate way of adding a file outputter
    #out ="myLog", config)

  logger_fu.outputters ="myLog", config);
  logger_fu.level = DEBUG
  logger_fu.debug{ "params #{params} \n" }
This topic is locked and can not be replied to.