Add date string to system.out's

I'm trying to add a time date string to all the System.out.println()'s which are being redirected to an output file. The code has tons of system.out.printlns and I'd like to avoid having to change each one to include the date and time.

Any ideas or suggestions, greatly appreciated.

(I'm redirecting with System.setOut(PrintStream) I'm thinking maybe I could extend printstream and add the date and time there but I'm not certain how to go about it)

[476 byte] By [xavier33a] at [2007-11-26 20:49:08]
# 1

The simplest, and probably best, way to do it would be to use a logging framework like log4j or Java's builting logging. I know log4j lets you specify in a config file what format the output will take, including adding things like timestamp, thread name, etc. I assume Java's logging does the same.

jverda at 2007-7-10 2:12:47 > top of Java-index,Java Essentials,Java Programming...