From: "Iñaki Baz Castillo" Date: 2008-04-06T20:15:43+09:00 Subject: Is posible to get the Module(s), Class and Method names in which we are? Hi, for logging purposes I'd like to print the Modules, Class and Method in with the logger is called. Imagine this case: module App module TransportLayer class Server def get_data() ... ... logger.info "We are in XXXXXXX" end end end end I'd like to see: "We are in App::TransportLayer::Server#get_data" Is it possible in anyway? The only I know how to do if getting the current Class name by doing "self.class.to_s". Thanks a lot. -- Iñaki Baz Castillo