Error with log4r?

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

halo_log4r' #{RAILS_ROOT}/app/controllers/raw_data_files_controller.rb:54:innew’

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs