Added logging capabilities.
Debugging the logger code.