From: Tobias DiPasquale Date: 2001-11-30T08:28:22+09:00 Subject: [ruby-talk:26998] logging in Ruby Hi all, I am writing a logger class for RubiCTM, and I was just wondering if I would be able to get the caller of the method inside a method. For instance, should the "xyz" method call <>.log, <>.log will know that the method that it was called from "xyz" and append that to the log message. Logger will be a Singleton, if that matters. Is there a way to find the most immediate method that the method was called from (Kernel.caller doesn't seem to be what I am looking for, or maybe it is... I'm not sure)? -- 0100001101000010010000110100011101110101 << Tobias DiPasquale >> -=[ Solaris Systems Administrator ]=- Villanova University ECE Dept. mailto: anany@ece.vill.edu -=[ Applications Engineering Consultant ]=- BCS Solutions, Inc. mailto: tdipasquale@bcssinc.com 0100001101000010010000110100011101110101