Working on the Logging system
Changes to the logging code and addition of a unit test for simple logging functionality