Finished Logging function