From: Justin Collins Date: 2009-01-21T11:28:42+09:00 Subject: Re: Ruby namespace question Zhao Yi wrote: > Tom Cloyd wrote: > >> Why not answer this empirically? Try it out! >> > > I have tried but failed. This is my code: > > logger=log4r.Logger.new > > and I got the error: undefined local variable or method log4r > > I think you want logger = Log4r.Logger.new or logger = Log4r::Logger.new But, glancing at the docs, you also need to specify a name for it, like logger = Log4r::Logger.new "mylog" Hope that helps. -Justin