I always thought that Predef.println was merely a shortcut for System.out.println, but apparently I am mistaken, since it doesn\'t seem to use
Predef.println is shortcut for Console.println and you can use Console.setOut or Console.withOut for redirecting.
Also, Console.setOut only affects the current thread while System.setOut
affects the whole JVM. Additionally Scala 2.9 repl evaluates each line in its own thread, so Console.setOut is not usable there.
scala> val baos = new java.io.ByteArrayOutputStream
baos: java.io.ByteArrayOutputStream =
scala> Console.withOut(baos)(print("hello"))
scala> println(baos)
hello