Logs global variables to the console