Is it possible to log the output of the Scala REPL?

Is there a way to log the output of the Scala REPL in a file ?