Add the concept of a Logger #9

merged 2 commits into from Jul 18, 2012

2 participants


I've replaced the STDERR.puts methods for a simple wrapper over ruby's Logger class. This allows users to quiet the API output if they wish. It also leaves the door open to add more logging and error handling at different levels if desired.

I also provided a set method for clients to inject their own logger; useful if you happen to be in a larger application with its own object providing a Logger interface (as I happen to be) and you want the API traffic to be included in the application-wide stream.

@nfelger nfelger merged commit 71a1e5d into nfelger:master Jul 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment