Added Exception object Handling to the logger class