From: Patrick Spence Date: 2006-08-02T00:49:50+09:00 Subject: Log4r The following code is throwing errors below. It looks like the wrong module is getting referenced. The constructor for c:\ruby\lib\ruby\1.8\Logger.rb takes 3-arguments. Seems to be some confusion here. Can someone point me in the right direction? Thanks! require 'log4r' include Log4r #-- error getting thrown on this line mylog = Logger.new('errorLogger.txt', nil, nil, true) # Now we can log. def do_log(log) log.debug "This is a message with level DEBUG" log.info "This is a message with level INFO" log.warn "This is a message with level WARN" log.error "This is a message with level ERROR" log.fatal "This is a message with level FATAL" end do_log(mylog) #-- #-- errors #-- wrong number of arguments (4 for 3) testLogger.rb:18:in `initialize' testLogger.rb:18 testLogger.rb:18:in `initialize': wrong number of arguments (4 for 3) (ArgumentError) from testLogger.rb:18 -- Posted via http://www.ruby-forum.com/.