Testing the logging function