Clean up the logging function