Update logging function to output to screen.