java.util.logging
public class LogTest {
static Logger logger = Logger.getLogger(LogTest.class.getName());
public void hello(){
logger.log(Level.INFO, "hello");
}
public static void main(String[] args){
new LogTest().hello();
}
}
原文:https://www.cnblogs.com/myibu/p/12775698.html