Create the ability to log the generated code

I created a button titled "log" that will simply print the code to the console.  I was having trouble copying and pasting the text in the label.