Refactor the logging Logic