Closed AugustoPedraza closed 8 years ago
Hehe I am not even aware that define_singleton_method
exists. What are the benefits of define_singleton_method
over monkey patching?
The mayor benefit is that I don't need know the class of the logger.
But I'm not sure if that could have some collateral damage...
Actually I think you got a point. Would you like to do a PR?
Inspired on you code, I implemented my own version of the multilogger:
And how I'm using it:
Rails.logger.yodlee.debug("Querying index!!!")
Thanks in advance!