How do you set the duration print strings stay on the screen?

If you click “Window” in the top left (file menu) and tick “Output Log” near the bottom of the drop down, you will get a log box (that is also detachable from the main window) which prints your strings with the node permanently.