public static void main(
String[] args) {
Logger log = Logger.getLogger(Test.class.getName());
ConsoleHandler h = new ConsoleHandler();
h.setFormatter(new SimpleFormatter());
log.addHandler(h);
log.info("Test");
}
Has the following output:
May 23, 2006 4:24:10 PM com.dmotorworks.lib.clie.Test main
INFO:
Test May 23, 2006 4:24:10 PM com.dmotorworks.lib.clie.Test main
INFO: Test
Why is it printing TWICE?