ruby - How do you properly incorporate logging support? -


i'm building ruby gem (silently) consumes few third party apis. i'd offer users of gem ability turn on debug mode causes gem emit information it's doing.

  • what patterns/rules/common solutions implementing sort of feature?
  • what libraries should used?
  • what considerations should give dev vs prod environments?
  • where should send debug info? (log file?, stdout etc)
  • any examples should at?


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -