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
Post a Comment