Creating a global logger. Fixes #20