From: David Heinemeier Hansson Date: 2003-08-05T19:51:40+09:00 Subject: Re: Log4r and Ruby 1.8.0 in Singleton problems > D> irb(main):001:0> require 'Singleton' > ^^^^^^^^^ > > What is this module ? I'm sorry. I recreated the test case too quickly (and wrong). Here's a better one: log4r.rbx: require 'log4r' Log = Log4r::Logger.new("AC") Log.add Log4r::StderrOutputter.new 'console' ....which produce: /usr/local/lib/ruby/1.8/singleton.rb:161:in `undef_method': undefined method `extend_object' for `Singleton' (NameError) from /usr/local/lib/ruby/1.8/singleton.rb:161 from /usr/local/lib/ruby/1.8/auto-reload.rb:77:in `load' from /usr/local/lib/ruby/1.8/auto-reload.rb:77:in `require' from /usr/local/lib/ruby/site_ruby/1.8/log4r/repository.rb:4 from /usr/local/lib/ruby/1.8/auto-reload.rb:77:in `load' from /usr/local/lib/ruby/1.8/auto-reload.rb:77:in `require' from /usr/local/lib/ruby/site_ruby/1.8/log4r/outputter/outputterfactory.rb:5 from /usr/local/lib/ruby/1.8/auto-reload.rb:77:in `load' ... 12 levels... from /usr/local/lib/ruby/1.8/auto-reload.rb:77:in `require' from /Users/david/Sites/extranet/log4r.rbx:1 from /usr/local/lib/ruby/1.8/apache/ruby-run.rb:53:in `load' from /usr/local/lib/ruby/1.8/apache/ruby-run.rb:53:in `handler' The contents of log4r.rbx works fine if used in IRB, but not under mod_ruby. / David