From: Brian Candler Date: 2009-07-23T06:13:55+09:00 Subject: Re: uninitialized constant XmlEngine::Logger (NameError) Venkat Akkineni wrote: > Thanks for the reply to start with. > > When I use > >> require "logger" > > it is pointing to the Logger class from Ruby library. > > I am trying to work with Log4r's Logger class. > > I have tried > >> require "log4r/logger" >> ruby: No such file or directory -- require (LoadError) > > Similar output for this too > >> require "log4r" >> ruby: No such file or directory -- require (LoadError) > > Suggestions Did you install it as a gem? Then require 'rubygems' require 'log4r' If not, then how did you install it? Documentation is here: http://log4r.sourceforge.net/ (follow links to the manual and to the RDoc API) Also, from the error you originally posted, it looks like you tried to instantiate a Logger, e.g. with Logger.new. Perhaps you need Log4r::Logger.new -- Posted via http://www.ruby-forum.com/.