From: "Iñaki Baz Castillo" Date: 2008-06-23T17:07:16+09:00 Subject: Re: Is it ellegant to use a global variable to store a Logger object? 2008/6/23, Robert Klemme : > Now things are becoming quite complex. > Logging is a global task and thusly some form of global handling is > perfectly ok IMHO. Using a global variable has the advantage that you do > not collide with instance methods (which you do if you place #debug etc. in > all classes either via inheritance, meta programming or other means). IMHO > the only bad aspect about the global is that you cannot ensure automatic > initialization. An alternative would be to add a single method to Kernel > that lazily initializes a Logger instance. Ok, thanks all for your help and advices :) -- Iñaki Baz Castillo