From: Brian Candler Date: 2009-08-01T17:35:56+09:00 Subject: Re: debugging messages from a daemon program Ken Burgett wrote: > I had some luck using the ENV hash: ENV['logger'] = Logger.now(...) The ENV hash is the OS environment. It's only supposed to contain strings. You can make another global hash of objects if you like: SERVICES = {} SERVICES['logger'] = Logger.new(...) But that's not much different to using global variables. -- Posted via http://www.ruby-forum.com/.