Hello,

Can anybody here tell me why the example below is not outputting 
"Overruling error" on the log.error ?

---------
require 'log4r'
include Log4r

class MyLogger < Log4r::Logger
  def error(progname = nil, &block)
    add(ERROR, nil, progname, "Overruling error")
  end
end

  log             = MyLogger.new('logtest')
  log.outputters  = Outputter.stdout
  log.level       = Logger::DEBUG

  log.error("Caught an error")

---------

Thanks.

-- 
Posted via http://www.ruby-forum.com/.