Fixed accidental use of global logger.

- Fixes #214