Use logging library instead of console.log
Throw error, expose log obj via debug
Merge pull request #50 from tangrams/iwillig/logging4u

Use logging library instead of console.log