How do I log correctly inside my Ruby gem?

Viewed 6016

Currently I'm using puts, but I'm sure that's not the correct answer. How do I correctly setup a logger, inside my gem, to output my internal logging instead of puts?

4 Answers
Related