Add a logging function to prefix changes with date & time