I
Iñaki Baz Castillo
Hi, for logging purposes I'd like to print the Modules, Class and Method in=
=20
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=
=20
Class name by doing "self.class.to_s".
Thanks a lot.
=2D-=20
I=C3=B1aki Baz Castillo
=20
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=
=20
Class name by doing "self.class.to_s".
Thanks a lot.
=2D-=20
I=C3=B1aki Baz Castillo