I\'m writing a buildscript. I want to log everything that is going on, but I also want to see everything while it is running. What\'s the best practice to do this?