FileHandler
构造器
boolean append这个参数的含义是,是追加在后面的,不会清除之前的记录
==int limit int count 这两个参数不理解,也不会用 ==
方法
close()
publish()
import java.util.logging.*;
import java.io.*;
import java.util.*;
import java.time.*;
public class Test
{
public static void main(String[] args) throws IOException
{
//FileHandler
FileHandler fh = new FileHandler("文件.xml",true);
fh.publish(new LogRecord(Level.SEVERE,"啊啊啊"));
fh.publish(new LogRecord(Level.SEVERE,"老刘"));
FileHandler fh1 = new FileHandler("另一个.xml",100,1);
fh1.publish(new LogRecord(Level.OFF,"我那个网"));
fh1.close();
}
}