Java 日志文件的生产


 
       FileHandler fileHandler = null;
       try {
           fileHandler = new FileHandler("E:/testDir/EAPlog.log");
       } catch (IOException e) {
           e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
       }
       fileHandler.setLevel(Level.INFO);
 

发布了51 篇原创文章 · 获赞 46 · 访问量 62万+

猜你喜欢

转载自blog.csdn.net/nbxinjian/article/details/86094601