0

这对我来说零意义:

代码

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------");

结果

AppEngine 日志截图

“OFF”导致“ERROR”和“INFO”根本没有记录是怎么回事?此外,文档指出控制台输出也应记录为 INFO。没有发生。

4

0 回答 0