Log screen output of Ruby scrpt