Added more code to the Logging Class