这对我来说毫无意义:
代码
Logger l = Logger.getLogger("SomeClassName");
l.log(Level.SEVERE, "-------start------");
l.log(Level.INFO, "INFO Two... Two...");
l.log(Level.WARNING, "WARNING Two... Two...");
l.log(Level.SEVERE, "SEVERE Two... Two...");
l.log(Level.CONFIG, "CONFIG Two... Two...");
l.log(Level.FINEST, "FINEST Two... Two...");
l.log(Level.OFF, "OFF Two... Two...");
System.out.println("CONSOLE Two... Two...");
l.log(Level.SEVERE, "-------end------");
结果
“关闭”是什么导致“错误”,“INFO”根本没有被记录?此外,the documentation表示Console-output也应记录为INFO。没发生。