system.out.println
I need solution for the following -
I want system.out.println statements to work in its usual way if a user-defined flag is set in a properties file.
In case the flag is not set then I don't want statements to be printed anywhere at all.
One option could be - Define and function where it will check the flag and print the statement passed as argument if the flag is set to true and call this function whereever the system.out.println is called
Could anyone think of any other better solution!

