If using log4j is too complicated
the cheapest way to do it is to wrap the System.out.println(x) in a static method
like that
public class MySysOut{
public static void print(Object o){
System.out.println(o.toString()); //Comment to line to remove the flow of system.out!
}
}
then instead of calling System.out.println() in your project you just need to call MySysOut.print() , and you can even change the system.out.println call to some writing into a file.