Using java.util.logging.Logger to output some log to the console just like this:
public static void main(String[] args) {
Logger logger = Logger.getLogger("test");
logger.info("Hello Wolrd!");
}
The output is:
FEB 16, 2012 10:17:43 AM com.abc.HelloWorld main
INFO: Hello World.
This seems to be OK, however...
We are using java.util.logging.Logger in all our Ant tasks (an internal standard) and we have a large ant project. The console output of a full cycle can be larger than 300KB, in which our own logger output taks at least 50.
Now I don't want to see the information about time, class name and method of Level.INFO outputs. Also the information line makes it hard to focus on the custom messages.
So is there any way to remove the first line (information of timestamp, class and method) from each output (or just from each Level.INFO output)?