Logging the results to the console or log file