Merge pull request #17 from claudius108/master

Updated the logging function